Skip to content

Commit 73dd2e8

Browse files
committed
Check PHP syntax
1 parent 604fd4d commit 73dd2e8

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

.github/workflows/tests.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,40 @@ 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+
fail-on-warnings: true
67+
3968
phpunit:
4069
name: Run PHPUnit tests
41-
needs: php-coding-style
70+
needs:
71+
- php-coding-style
72+
- php-syntax
4273
strategy:
4374
matrix:
4475
os:

0 commit comments

Comments
 (0)