Skip to content

Commit 2843a22

Browse files
committed
Run PHP lint first and also on tests
1 parent 63912e8 commit 2843a22

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,19 @@ jobs:
3737
- name: "Checkout code"
3838
uses: actions/checkout@v4
3939

40-
- name: "Install PHP with extensions"
40+
- name: "Install PHP"
4141
uses: shivammathur/setup-php@v2
4242
with:
4343
coverage: "none"
4444
php-version: ${{ matrix.php }}
4545
tools: composer:${{ matrix.composer }}
4646

47+
- if: matrix.php == '7.1'
48+
name: "Lint PHP files"
49+
run: |
50+
find src/ -name '*.php' | xargs -n1 php -l
51+
find tests/ -name '*.php' | xargs -n1 php -l
52+
4753
- name: "Validate composer.json"
4854
run: "composer validate --strict --no-check-lock"
4955

@@ -71,7 +77,3 @@ jobs:
7177
fi
7278
7379
- run: vendor/bin/simple-phpunit
74-
75-
- if: matrix.php == '7.1'
76-
name: "Lint PHP files"
77-
run: find src/ -name '*.php' | xargs -n1 php -l

0 commit comments

Comments
 (0)