Skip to content

Commit

Permalink
Add job with PHPUnit 12 to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kubawerlos committed Feb 15, 2025
1 parent 7282b6b commit a7f153c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ jobs:
description: 'on Windows'
php-version: '8.4'
FAST_LINT_TEST_CASES: 1
- os: ubuntu-latest
description: 'with PHPUnit 12'
php-version: '8.4'
install-phpunit-12: true
- os: ubuntu-latest
php-version: '8.5'
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -116,8 +120,16 @@ jobs:
- if: matrix.calculate-coverage
run: composer require --dev php-coveralls/php-coveralls --no-update

- if: matrix.install-phpunit-12
run: composer require --dev friendsofphp/php-cs-fixer:dev-master phpunit/phpunit:^12.0.2 --no-update

- run: composer update --no-progress --classmap-authoritative ${{ matrix.composer-flags }}

- if: matrix.install-phpunit-12
env:
PHP_CS_FIXER_IGNORE_ENV: 1
run: ./vendor/bin/php-cs-fixer fix --quiet --rules=php_unit_attributes

- run: composer show | grep php-cs-fixer

- run: ./vendor/bin/phpunit ${{ matrix.phpunit-flags }}
Expand Down

0 comments on commit a7f153c

Please sign in to comment.