Skip to content

Commit

Permalink
Fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Oct 2, 2024
1 parent 65b5ec4 commit 35caab8
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI (Matrix Build)
name: Continuous Integration

on:
push:
Expand Down Expand Up @@ -76,6 +76,7 @@ jobs:
mkdir build/builddoc
mkdir build/doc
mkdir build/coverage
mkdir build/coverage-html
mkdir build/logs
mkdir build/pdepend
mkdir build/dist
Expand All @@ -95,6 +96,7 @@ jobs:
continue-on-error: true
run: |
vendor/bin/phpmd src xml build/phpmd.xml --reportfile build/logs/pmd.xml --exclude src/entities/
vendor/bin/phpmd src github build/phpmd.xml --exclude src/entities/
- name: Run PHPCS
continue-on-error: true
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/build.doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Documentation

on:
workflow_dispatch:

env:
PHPDOCUMENTORURL: https://phpdoc.org/phpDocumentor.phar
PHPDOCUMENTORFILENAME: phpDocumentor.phar

jobs:
build:
permissions: write-all
runs-on: "ubuntu-24.04"

steps:
- name: Checkout Sources
uses: actions/checkout@v4

- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: "8.3"
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, bcmath, intl, gd, exif, iconv, imagick, json, xdebug
coverage: xdebug

- name: Prepare Directories
run: |
mkdir build/builddoc
mkdir build/doc
mkdir build/coverage
mkdir build/coverage-html
mkdir build/logs
mkdir build/pdepend
mkdir build/dist
mkdir build/phpdoc
- name: Documentation
continue-on-error: true
run: |
wget $PHPDOCUMENTORURL -O $PHPDOCUMENTORFILENAME
chmod +x $PHPDOCUMENTORFILENAME
cd build
php ../$PHPDOCUMENTORFILENAME
cd ..
rm -f $PHPDOCUMENTORFILENAME
- name: Deploy
continue-on-error: true
run: |
zip -r build/dist/doc.zip build/doc
9 changes: 4 additions & 5 deletions .github/workflows/build.release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release (Matrix Build)
name: Release

on:
push:
Expand Down Expand Up @@ -64,6 +64,7 @@ jobs:
mkdir build/builddoc
mkdir build/doc
mkdir build/coverage
mkdir build/coverage-html
mkdir build/logs
mkdir build/pdepend
mkdir build/dist
Expand All @@ -83,6 +84,7 @@ jobs:
continue-on-error: true
run: |
vendor/bin/phpmd src xml build/phpmd.xml --reportfile build/logs/pmd.xml --exclude src/entities/
vendor/bin/phpmd src github build/phpmd.xml --exclude src/entities/
- name: Run PHPCS
continue-on-error: true
Expand Down Expand Up @@ -133,14 +135,12 @@ jobs:
rm -f $PHPDOCUMENTORFILENAME
- name: Deploy
continue-on-error: true
run: |
zip -r build/dist/builddoc.zip build
zip -r build/dist/doc.zip build/doc
zip -r build/dist/src.zip src
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: github.event_name != 'pull_request'
with:
files: "build/logs/junit.xml"

Expand All @@ -151,4 +151,3 @@ jobs:
prerelease: false
files: |
build/dist/doc.zip
build/dist/builddoc.zip

0 comments on commit 35caab8

Please sign in to comment.