From 8d9a523dbc842b62ba96ba3937e8db9a2585fc04 Mon Sep 17 00:00:00 2001 From: Jacob Tobiasz Date: Mon, 18 Dec 2023 12:20:39 +0100 Subject: [PATCH] Add a matrix strategy to the CI workflow --- .github/workflows/ci.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 24fcec93..dbc93552 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,7 +10,12 @@ on: jobs: static-checks: runs-on: ubuntu-latest - name: "PHP ${{ matrix.php }}" + strategy: + fail-fast: false + matrix: + php: [ "8.0", "8.1", "8.2", "8.3" ] + symfony: [ "^5.4", "^6.4" ] + name: "Continuous Integration (PHP ${{ matrix.php }} / Symfony ${{ matrix.symfony }})" env: APP_ENV: test_cached steps: @@ -39,7 +44,7 @@ jobs: with: path: | ${{ steps.composer-cache.outputs.dir }} - key: ${{ github.run_id }}-${{ runner.os }}-${{ hashFiles('composer.json') }}-symfony-${{ matrix.symfony }}-api-platform-${{ matrix.api-platform }} + key: ${{ github.run_id }}-${{ runner.os }}-${{ hashFiles('composer.json') }}-symfony-${{ matrix.symfony }} - name: "Install dependencies" run: composer update --no-interaction --no-scripts