Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 34 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,42 @@ jobs:
name: Check PHP coding style
run: php-cs-fixer fix --config=./.php-cs-fixer.dist.php --dry-run --using-cache=no --diff --show-progress=dots --verbose --no-interaction --ansi

php-syntax:
name: Check PHP syntax
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- "5.3"
- "8.4"
steps:
-
name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: opcache
tools: none
coverage: none
-
name: Checkout
uses: actions/checkout@v4
-
name: Check PHP syntax
uses: mlocati/check-php-syntax@v1
with:
include: |
bin/export-plural-rules
bin/import-cldr-data
exclude: |
.php-cs-fixer.dist.php
fail-on-warnings: true

phpunit:
name: Run PHPUnit tests
needs: php-coding-style
needs:
- php-coding-style
- php-syntax
strategy:
matrix:
os:
Expand Down