Skip to content

Commit

Permalink
DevKit updates (#1350)
Browse files Browse the repository at this point in the history
  • Loading branch information
SonataCI committed Apr 25, 2021
1 parent 8885f67 commit 2bec7a6
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ jobs:

continue-on-error: ${{ matrix.allowed-to-fail }}

env:
SYMFONY_REQUIRE: ${{matrix.symfony-require}}

strategy:
matrix:
php-version:
- '7.3'
- '7.4'
dependencies: [highest]
allowed-to-fail: [false]
symfony-require: [""]
variant: [normal]
include:
- php-version: '7.3'
Expand All @@ -39,15 +43,16 @@ jobs:
- php-version: '7.4'
dependencies: highest
allowed-to-fail: false
variant: 'symfony/symfony:"4.4.*"'
variant: 'friendsofsymfony/user-bundle:"2.*"'
- php-version: '7.4'
dependencies: highest
allowed-to-fail: false
variant: 'friendsofsymfony/user-bundle:"2.*"'
variant: 'sonata-project/admin-bundle:"3.*"'
- php-version: '7.4'
dependencies: highest
allowed-to-fail: false
variant: 'sonata-project/admin-bundle:"3.*"'
symfony-require: 4.4.*
variant: 'symfony/symfony:"4.4.*"'

steps:
- name: Checkout
Expand All @@ -67,8 +72,12 @@ jobs:
if: matrix.php-version == '8.0'
run: composer config platform.php 7.4.99

- name: "Globally install symfony/flex"
if: matrix.symfony-require != ''
run: "composer global require --no-progress --no-scripts --no-plugins symfony/flex"

- name: Install variant
if: matrix.variant != 'normal'
if: matrix.variant != 'normal' && !startsWith(matrix.variant, 'symfony/symfony')
run: composer require ${{ matrix.variant }} --no-update

- name: "Install Composer dependencies (${{ matrix.dependencies }})"
Expand Down

0 comments on commit 2bec7a6

Please sign in to comment.