Skip to content

Commit

Permalink
Add a matrix strategy to the CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubtobiasz committed Dec 18, 2023
1 parent 7ed55fa commit 8d9a523
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8d9a523

Please sign in to comment.