Skip to content

Commit

Permalink
Don't test Symfony 7.x on PHP <8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
chalasr committed Dec 30, 2023
1 parent 97c408f commit 35fbaf3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ jobs:
strategy:
fail-fast: false
matrix:
#Stable supported versions
php: ['8.1', '8.2', '8.3']
symfony: ['5.4.*', '6.4.*', '7.0.*']
composer-flags: ['--prefer-stable']
can-fail: [false]
exclude:
- php: "8.1"
symfony: "7.0.*"

name: "PHP ${{ matrix.php }} - Symfony ${{ matrix.symfony }}${{ matrix.composer-flags != '' && format(' - Composer {0}', matrix.composer-flags) || '' }}"

Expand All @@ -29,9 +31,8 @@ jobs:
- name: "checkout"
uses: "actions/checkout@v4"

- name: "build the PHP8 environment"
- name: "build the PHP environment"
run: "dev/bin/docker-compose build --build-arg PHP_VERSION=${{ matrix.php }} --build-arg XDEBUG_VERSION='3.3.1' php"
if: startsWith(matrix.php, '8')

- name: "install dependencies"
run: "dev/bin/php composer update --ansi ${{ matrix.composer-flags }}"
Expand Down

0 comments on commit 35fbaf3

Please sign in to comment.