Skip to content

Commit

Permalink
[INFR] Fixed workflows/actionss
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Dec 20, 2024
1 parent f92eb5a commit 1172797
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 5 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/build.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,28 @@ on:
- "master"
workflow_dispatch:

env:
VALIDATORURL: https://github.com/itplr-kosit/validator/releases/download/v1.5.0/validator-1.5.0-distribution.zip
VALIDATORSCENARIOURL: https://github.com/itplr-kosit/validator-configuration-xrechnung/releases/download/release-2023-07-31/validator-configuration-xrechnung_3.0.0_2023-07-31.zip
VALIDATORPATH: build/validator
VALIDATORZIPFILENAME: validator.zip
VALIDATORSCENARIOZIPFILENAME: validator-configuration.zip
VALIDATORJARFILENAME: validationtool-1.5.0-standalone.jar
VALIDATORSCENARIOFILENAME: scenarios.xml
PHPDOCUMENTORURL: https://phpdoc.org/phpDocumentor.phar
PHPDOCUMENTORFILENAME: phpDocumentor.phar
VERAPDFURL: https://software.verapdf.org/rel/verapdf-installer.zip
VERAPDFPATH: build/verapdf
VERAPDFZIPFILENAME: verapdf.zip

jobs:
build:
permissions: write-all
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ["ubuntu-22.04", "ubuntu-24.04"]
phpversion: ["7.3", "7.4", "8.0", "8.1", "8.2", "8.3"]
phpversion: ["7.3", "7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]

steps:
- name: Checkout Sources
Expand Down Expand Up @@ -66,7 +80,18 @@ jobs:
mkdir build/dist
mkdir build/phpdoc
- name: Run Lint
- name: Run Lint (PHP 8.0 and lower)
if: ${{ matrix.phpversion < '8.1' }}
run: |
for afile in $(find . -type f -name '*.php' -path './src*/*' -not -path "*codes*" -not -path "*codelistsenum*" -print); do
php -l $afile
done
for afile in $(find . -type f -name '*.php' -path './tests*/*' -print); do
php -l $afile
done
- name: Run Lint (PHP 8.1 and higher)
if: ${{ matrix.phpversion >= '8.1' }}
run: |
for afile in $(find . -type f -name '*.php' -path './src*/*' -print); do
php -l $afile
Expand Down
18 changes: 15 additions & 3 deletions .github/workflows/build.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,18 @@ on:
- "make/**"

env:
VALIDATORURL: https://github.com/itplr-kosit/validator/releases/download/v1.5.0/validator-1.5.0-distribution.zip
VALIDATORSCENARIOURL: https://github.com/itplr-kosit/validator-configuration-xrechnung/releases/download/release-2023-07-31/validator-configuration-xrechnung_3.0.0_2023-07-31.zip
VALIDATORPATH: build/validator
VALIDATORZIPFILENAME: validator.zip
VALIDATORSCENARIOZIPFILENAME: validator-configuration.zip
VALIDATORJARFILENAME: validationtool-1.5.0-standalone.jar
VALIDATORSCENARIOFILENAME: scenarios.xml
PHPDOCUMENTORURL: https://phpdoc.org/phpDocumentor.phar
PHPDOCUMENTORFILENAME: phpDocumentor.phar
VERAPDFURL: https://software.verapdf.org/rel/verapdf-installer.zip
VERAPDFPATH: build/verapdf
VERAPDFZIPFILENAME: verapdf.zip
GH_PAT: ${{ secrets.UPDATEWIKITOKEN }}

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

Expand All @@ -39,9 +49,9 @@ jobs:
- uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-8.4-composer-${{ hashFiles('**/composer.lock') }}
key: ${{ runner.os }}-8.3-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-8.4-composer-
${{ runner.os }}-8.3-composer-
- name: Install composer dependencies
run: |
Expand Down Expand Up @@ -119,6 +129,7 @@ jobs:
continue-on-error: true
run: |
zip -r build/dist/doc.zip build/doc
zip -r build/dist/builddoc.zip build/builddoc build/coverage build/coverage-html build/logs build/pdepend build/phpdoc
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
Expand All @@ -145,3 +156,4 @@ jobs:
prerelease: false
files: |
build/dist/doc.zip
build/dist/builddoc.zip

0 comments on commit 1172797

Please sign in to comment.