Skip to content

Commit 6312a19

Browse files
committed
Use Flex to require specific Symfony versions
1 parent bb876be commit 6312a19

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@ jobs:
2020
- '7.4'
2121
- '8.0'
2222
symfony-version:
23-
- '4.4'
24-
- '5.3'
25-
- '5.4'
23+
- '4.4.*'
24+
- '5.3.*'
25+
- '5.4.*'
2626
dependencies:
2727
- 'lowest'
2828
- 'highest'
2929
remove-dependencies: [ '' ]
3030
coverage: [ 'none' ]
3131
include:
3232
- php-version: '8.0'
33-
symfony-version: '5.3'
33+
symfony-version: '5.3.*'
3434
dependencies: 'lowest'
3535
remove-dependencies: '--dev symfony/validator doctrine/orm doctrine/annotations'
3636
- php-version: '8.0'
37-
symfony-version: '5.3'
37+
symfony-version: '5.3.*'
3838
dependencies: 'lowest'
3939
coverage: "pcov"
4040
steps:
@@ -44,17 +44,14 @@ jobs:
4444
- name: "Install PHP"
4545
uses: "shivammathur/setup-php@v2"
4646
with:
47+
tools: flex
4748
php-version: "${{ matrix.php-version }}"
4849
coverage: "${{ matrix.coverage }}"
4950

5051
- name: "Change stability"
5152
if: "matrix.stability != ''"
5253
run: perl -pi -e 's/^}$/,"minimum-stability":"'"${{ matrix.minimum-stability }}"'"}/' composer.json && cat composer.json
5354

54-
- name: "Symfony version"
55-
if: "matrix.symfony-version != ''"
56-
run: perl -pi -e 's#"(symfony/.*)":\s*".*\|\|.*"#"$1":"'"${{ matrix.symfony-version }}.*"'"#' composer.json && cat composer.json
57-
5855
- name: "Webonyx GraphQL version"
5956
if: "matrix.graphql-version != ''"
6057
run: composer require "webonyx/graphql-php:${{ matrix.graphql-version }}" --dev --no-update
@@ -67,6 +64,8 @@ jobs:
6764
uses: ramsey/[email protected]
6865
with:
6966
dependency-versions: ${{ matrix.dependencies }}
67+
env:
68+
SYMFONY_REQUIRE: "${{ matrix.symfony-version }}"
7069

7170
- name: "Run tests"
7271
run: composer test
@@ -88,6 +87,7 @@ jobs:
8887
- name: "Install PHP"
8988
uses: "shivammathur/setup-php@v2"
9089
with:
90+
tools: flex
9191
php-version: "7.4"
9292

9393
- name: "Install dependencies"

0 commit comments

Comments
 (0)