Skip to content

Commit deee2a0

Browse files
committed
Force installing the same version for all Symfony components during the CI
1 parent 3ca5cab commit deee2a0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/tests.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,13 @@ jobs:
3131
- description: 'Symfony 4.4'
3232
php: '7.3'
3333
symfony_constraint: 4.4.*
34+
env:
35+
SYMFONY_REQUIRE: ${{matrix.symfony_constraint}}
3436
- description: 'Symfony 3.4'
3537
php: '7.2'
3638
symfony_constraint: 3.4.*
3739
env:
40+
SYMFONY_REQUIRE: ${{matrix.symfony_constraint}}
3841
SYMFONY_DEPRECATIONS_HELPER: disabled
3942
- description: 'prefer lowest'
4043
php: '7.2'
@@ -58,6 +61,8 @@ jobs:
5861
- run: |
5962
sed -ri '/symfony\/(monolog-bundle|phpunit-bridge|messenger|psr-http-message-bridge|polyfill-php80)/! s/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'${{ matrix.symfony_constraint }}'"/' composer.json;
6063
if: matrix.symfony_constraint
64+
- name: Install Symfony Flex
65+
run: composer global require --no-progress --no-scripts --no-plugins symfony/flex
6166
- run: composer remove --dev symfony/messenger --no-update
6267
if: matrix.symfony_constraint == '3.4.*' || matrix.composer_option == '--prefer-lowest'
6368
- run: composer update --no-progress --ansi ${{ matrix.composer_option }}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"symfony/event-dispatcher": "^3.4.44||^4.4.20||^5.0.11",
3030
"symfony/http-kernel": "^3.4.44||^4.4.20||^5.0.11",
3131
"symfony/polyfill-php80": "^1.22",
32-
"symfony/psr-http-message-bridge": "^2.0",
32+
"symfony/psr-http-message-bridge": "^1.2||^2.0",
3333
"symfony/security-core": "^3.4.44||^4.4.20||^5.0.11"
3434
},
3535
"require-dev": {

0 commit comments

Comments
 (0)