diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a9bf6275..2cc0795c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,20 +15,36 @@ jobs: php-version: ['8.1', '8.2', '8.3'] composer-flags: [''] symfony-version: ['^6.4'] + phpunit-version: ['^9.6'] include: - php-version: 7.4 symfony-version: "^5.4" + phpunit-version: '^9.6' composer-flags: "--prefer-lowest" - php-version: 8.1 symfony-version: "^5.4" + phpunit-version: "^10.0" - php-version: 8.1 symfony-version: "^6.4" + phpunit-version: "^10.0" - php-version: 8.2 symfony-version: "^6.4" + phpunit-version: "^10.0" - php-version: 8.2 symfony-version: "^7.0" + phpunit-version: "^10.0" - php-version: 8.3 symfony-version: "^7.0" + phpunit-version: "^10.0" + - php-version: 8.2 + symfony-version: "^6.4" + phpunit-version: "^11.0" + - php-version: 8.2 + symfony-version: "^7.0" + phpunit-version: "^11.0" + - php-version: 8.3 + symfony-version: "^7.0" + phpunit-version: "^11.0" steps: - name: Checkout @@ -65,6 +81,7 @@ jobs: symfony/twig-bundle=${{ matrix.symfony-version }} symfony/validator=${{ matrix.symfony-version }} symfony/yaml=${{ matrix.symfony-version }} + phpunit/phpunit=${{ matrix.phpunit-version }} # This is needed to fix builds where the `annotation_reader` service may not be set up if # the Annotations package is not in the production dependencies diff --git a/composer.json b/composer.json index 5b5fff92..9384effe 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ ], "require": { "php": "^7.4 || ^8.0", - "phpunit/phpunit": "^9.6 || ^10.0", + "phpunit/phpunit": "^9.6 || ^10.0 || ^11.0", "symfony/browser-kit": "^5.4 || ^6.4 || ^7.0", "symfony/framework-bundle": "^5.4 || ^6.4 || ^7.0" },