Skip to content

Commit 89623b2

Browse files
committed
Check PHP syntax
1 parent 604fd4d commit 89623b2

1 file changed

Lines changed: 34 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,42 @@ jobs:
3636
name: Check PHP coding style
3737
run: php-cs-fixer fix --config=./.php-cs-fixer.dist.php --dry-run --using-cache=no --diff --show-progress=dots --verbose --no-interaction --ansi
3838

39+
php-syntax:
40+
name: Check PHP syntax
41+
runs-on: ubuntu-latest
42+
strategy:
43+
matrix:
44+
php-version:
45+
- "5.3"
46+
- "8.4"
47+
steps:
48+
-
49+
name: Setup PHP
50+
uses: shivammathur/setup-php@v2
51+
with:
52+
php-version: ${{ matrix.php-version }}
53+
extensions: opcache
54+
tools: none
55+
coverage: none
56+
-
57+
name: Checkout
58+
uses: actions/checkout@v4
59+
-
60+
name: Check PHP syntax
61+
uses: mlocati/check-php-syntax@v1
62+
with:
63+
include: |
64+
bin/export-plural-rules
65+
bin/import-cldr-data
66+
exclude: |
67+
.php-cs-fixer.dist.php
68+
fail-on-warnings: true
69+
3970
phpunit:
4071
name: Run PHPUnit tests
41-
needs: php-coding-style
72+
needs:
73+
- php-coding-style
74+
- php-syntax
4275
strategy:
4376
matrix:
4477
os:

0 commit comments

Comments
 (0)