diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 80569c4..efaeb4c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: