From 8b0928056fbb2ec6a6fb30959b9204305fcf7936 Mon Sep 17 00:00:00 2001 From: Adrien Brault Date: Tue, 3 Jan 2023 12:47:50 +0100 Subject: [PATCH 1/2] ci: fix SYMFONY_REQUIRE --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 34bcbea..827a5dd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,6 +45,11 @@ jobs: restore-keys: | ${{ runner.os }}-composer- + - name: "Install symfony/flex for SYMFONY_REQUIRE" + run: | + composer global config --no-plugins allow-plugins.symfony/flex true + composer global require --no-progress --no-scripts --no-plugins symfony/flex + - name: 'Install dependencies' run: SYMFONY_REQUIRE='${{ matrix.symfony_version }}.*' composer update ${{ matrix.composer-flags }} --prefer-dist From 28033ba69d5695dab871b5cc06c7b8c269470af4 Mon Sep 17 00:00:00 2001 From: Adrien Brault Date: Tue, 3 Jan 2023 12:53:00 +0100 Subject: [PATCH 2/2] ci: do not test incompatible php/symfony versions --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 827a5dd..f76cb03 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,7 +20,9 @@ jobs: - '4.4' - '5.4' - '6.0' - - '6.1' + include: + - php_version: '8.1' + symfony_version: '6.1' name: 'PHP ${{ matrix.php_version }} - Symfony ${{ matrix.symfony_version }}'