From e15f3d272a80a68a16b4135cd39975b7baf6f8c4 Mon Sep 17 00:00:00 2001 From: Guilhem Niot Date: Tue, 21 Dec 2021 11:08:16 +0100 Subject: [PATCH] Use an early version of Api-platform with symfony 6 support in one test case --- .github/workflows/continuous-integration.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index fb2871fb3..3679baa67 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -34,6 +34,9 @@ jobs: symfony-require: "5.4.*" - php-version: 8.1 symfony-require: "5.4.*" + - php-version: 8.1 + symfony-require: "5.4.*" + api-platform: "early" steps: - name: "Checkout" @@ -58,6 +61,14 @@ jobs: path: ${{ steps.composercache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} restore-keys: ${{ runner.os }}-composer- + + - name: "Use an early version of Api-platform with symfony 6 support" + if: ${{ matrix.api-platform == 'early' }} + env: + SYMFONY_REQUIRE: "${{ matrix.symfony-require }}" + run: | + composer config repositories.api-platform git https://github.com/PierreRebeilleau/core.git + composer require api-platform/core:dev-test-compatibility --no-update --dev - name: "Install dependencies with composer" env: