Skip to content

Commit c872166

Browse files
committed
Run PHP lint first
1 parent 63912e8 commit c872166

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,17 @@ 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: find src/ -name '*.php' | xargs -n1 php -l
50+
4751
- name: "Validate composer.json"
4852
run: "composer validate --strict --no-check-lock"
4953

@@ -71,7 +75,3 @@ jobs:
7175
fi
7276
7377
- 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)