From d355d2a7b45c761e34993f6458a36b0dbba9cbd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Mon, 4 Dec 2023 00:22:53 +0100 Subject: [PATCH] ci: Use flex to enforce the Symfony version --- .github/workflows/ci.yaml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9e7251b..32fc3d7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -42,13 +42,10 @@ jobs: matrix: php: - '8.2' - variant: ['normal'] dependencies: ['highest'] - include: - - php: '8.2' - variant: 'symfony/symfony:"^6.4"' - dependencies: 'highest' - composer-flags: '' + symfony: + - 'unchanged' + - '6.4.*' fail-fast: false services: @@ -65,15 +62,15 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Configure Symfony (variant) - if: matrix.variant != 'normal' - run: composer require --dev --no-update ${{ matrix.variant }} + - name: Configure Symfony version + if: matrix.symfony != 'unchanged' + run: echo "SYMFONY_REQUIRE=${{ matrix.symfony }}" >> $GITHUB_ENV - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} - tools: composer + tools: composer, flex extensions: intl, bcmath, curl, openssl, mbstring ini-values: memory_limit=-1