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 056f47e commit ba47a7d
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/build.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ env:
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:
Expand Down Expand Up @@ -83,7 +86,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
19 changes: 18 additions & 1 deletion .github/workflows/build.doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,27 @@ 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

- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-8.3-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-8.3-composer-
- name: Install composer dependencies
run: |
composer config -g github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}
composer install
- name: Prepare Directories
run: |
mkdir build/builddoc
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ env:
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:
build:
Expand Down

0 comments on commit ba47a7d

Please sign in to comment.