Skip to content

Commit

Permalink
Clean up lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Aug 22, 2024
1 parent b1328d8 commit 14eac47
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,10 @@ jobs:
php-version: "${{ matrix.php-version }}"
coverage: none

- uses: ramsey/composer-install@v3
with:
dependency-versions: highest

- name: "Lint PHP files"
run: |
hasErrors=0
for f in $(find src/ tests/ -type f -name '*.php' ! -path '*/vendor/*')
for f in $(find src/ tests/ -type f -name '*.php' ! -path '*/vendor/*' ! -path '*/Fixtures/*')
do
{ error="$(php -derror_reporting=-1 -ddisplay_errors=1 -l -f $f 2>&1 1>&3 3>&-)"; } 3>&1;
if [ "$error" != "" ]; then
Expand All @@ -45,6 +41,3 @@ jobs:
if [ $hasErrors -eq 1 ]; then
exit 1
fi
- name: "Lint PHP files"
run: "find src/ -type f -name '*.php' -print0 | xargs -0 -L1 -P4 -- php -l -f"

0 comments on commit 14eac47

Please sign in to comment.