From a7f153c71c93800c3bd496cf9c32f4ecd4b756fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Wer=C5=82os?= Date: Sat, 15 Feb 2025 12:25:20 +0100 Subject: [PATCH] Add job with PHPUnit 12 to CI --- .github/workflows/ci.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0843102c..366d0ff1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 }} @@ -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 }}