Skip to content

Commit

Permalink
DevKit updates (#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
SonataCI authored Apr 25, 2021
1 parent ae478c3 commit 1ace174
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:

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

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

strategy:
matrix:
php-version:
Expand All @@ -28,6 +31,7 @@ jobs:
- '8.0'
dependencies: [highest]
allowed-to-fail: [false]
symfony-require: [""]
variant: [normal]
include:
- php-version: '7.3'
Expand All @@ -37,6 +41,7 @@ jobs:
- php-version: '8.0'
dependencies: highest
allowed-to-fail: false
symfony-require: 4.4.*
variant: 'symfony/symfony:"4.4.*"'

steps:
Expand All @@ -53,8 +58,12 @@ jobs:
- name: Add PHPUnit matcher
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- 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: Set COMPOSER_ROOT_VERSION environment variable
Expand Down

0 comments on commit 1ace174

Please sign in to comment.