Skip to content

Support PHPUnit 13

Support PHPUnit 13 #34

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

(Line: 14, Col: 13): Matrix exclude key 'phpunit-versions' does not match any key within the matrix
on:
pull_request:
workflow_dispatch:
jobs:
test-suite:
name: PHPStan, PHPcs & Testsuite
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '8.1', '8.2', '8.3', '8.4' ]
exclude:
- php-versions: 8.1
phpunit-versions: 11.0
steps:
# https://github.com/marketplace/actions/setup-php-action
- name: Setup PHP ${{ matrix.php-versions }} with Xdebug 3.x
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug
# https://github.com/marketplace/actions/checkout
- name: Checkout code
uses: actions/checkout@v3
- name: Install PHPUnit ${{ matrix.phpunit-versions }}
run: |
rm composer.lock
- name: Install dependencies
run: composer install --prefer-dist
- name: Run PHPStan
run: vendor/bin/phpstan analyse
#- name: Run PHPcs fixer dry-run
# run: vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --config=.php-cs-fixer.dist.php
- name: Run test suite
run: vendor/bin/phpunit --fail-on-incomplete --log-junit junit.xml --coverage-clover clover.xml