Skip to content

Commit

Permalink
[INFR] Enhanced workflows - Exclude from linting for PHP < 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Dec 18, 2024
1 parent 4e8b7a5 commit 608036b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,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

0 comments on commit 608036b

Please sign in to comment.