Skip to content

Commit

Permalink
Update CI workflow for Symfony 7
Browse files Browse the repository at this point in the history
  • Loading branch information
endroid authored and Ninos committed Nov 27, 2023
1 parent f7b2380 commit 27ce9e8
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,17 @@ jobs:
symfony: 6.2.*
composer-flags: '--prefer-stable'
can-fail: false
- php: 8.2
symfony: 6.3.*
composer-flags: '--prefer-stable'
can-fail: false
# Development Symfony branches
- php: 8.2
symfony: 6.3.*@dev
symfony: 6.4.*@dev
composer-flags: ''
can-fail: false
- php: 8.2
symfony: 7.0.*@dev
composer-flags: ''
can-fail: false

Expand All @@ -63,15 +71,15 @@ jobs:
tools: "composer:v2,flex"

- name: "Set Composer stability"
if: "matrix.symfony == '6.3.*@dev'"
if: "matrix.symfony == '6.4.*@dev' || matrix.symfony == '7.0.*@dev'"
run: "composer config minimum-stability dev"

- name: "Remove symfony/security-guard"
if: "matrix.symfony == '6.0.*' || matrix.symfony == '6.1.*' || matrix.symfony == '6.2.*' || matrix.symfony == '6.3.*@dev'"
if: "matrix.symfony == '6.0.*' || matrix.symfony == '6.1.*' || matrix.symfony == '6.2.*' || matrix.symfony == '6.3.*' || matrix.symfony == '6.4.*@dev' || matrix.symfony == '7.0.*@dev'"
run: "composer remove --dev --no-update symfony/security-guard"

- name: "Install api-platform/core"
if: "matrix.symfony == '6.1.*' || matrix.symfony == '6.2.*' || matrix.symfony == '6.3.*@dev'"
if: "matrix.symfony == '6.1.*' || matrix.symfony == '6.2.*' || matrix.symfony == '6.3.*' || matrix.symfony == '6.4.*@dev' || matrix.symfony == '7.0.*@dev'"
run: "composer require --dev --no-update api-platform/core:^3.0"

- name: "Install dependencies"
Expand Down

0 comments on commit 27ce9e8

Please sign in to comment.