From 313b3b8b15690de517b0005ccb3a9f9ec0bea236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Ro=CC=88=C3=9Fner?= Date: Thu, 18 Jul 2024 15:15:58 +0200 Subject: [PATCH 1/4] add phpunit 11 to allowed phpunit version. --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" }, From da49474d6dc96b857e12bdde7db621dbe0e88b35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Ro=CC=88=C3=9Fner?= Date: Thu, 18 Jul 2024 15:37:29 +0200 Subject: [PATCH 2/4] add test cases for different phpunit version. --- .github/workflows/tests.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a9bf6275..5c26fb92 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,20 +15,35 @@ 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" 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 +80,7 @@ jobs: symfony/twig-bundle=${{ matrix.symfony-version }} symfony/validator=${{ matrix.symfony-version }} symfony/yaml=${{ matrix.symfony-version }} + phpunit/phpunit=${{ 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 From 3eaff23d1f616b3d6ef1395f4397ed76aae996a5 Mon Sep 17 00:00:00 2001 From: Alexis Lefebvre Date: Thu, 18 Jul 2024 16:10:15 +0200 Subject: [PATCH 3/4] chore: fix read of phpunit-version --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5c26fb92..2652e03f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -80,7 +80,7 @@ jobs: symfony/twig-bundle=${{ matrix.symfony-version }} symfony/validator=${{ matrix.symfony-version }} symfony/yaml=${{ matrix.symfony-version }} - phpunit/phpunit=${{ phpunit-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 From 9621fb0d5cbf04bdb19dab5bd2796b733300c690 Mon Sep 17 00:00:00 2001 From: Alexis Lefebvre Date: Thu, 18 Jul 2024 16:12:49 +0200 Subject: [PATCH 4/4] chore: set phpunit-version for the prefer-lowest job --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2652e03f..2cc0795c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,6 +19,7 @@ jobs: 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"