Skip to content

Commit 7dca4c4

Browse files
committed
Use symfony flex to set Symfony version
1 parent d1d137e commit 7dca4c4

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
include:
1616
- { php: 8.2, symfony: 6.4.*, dependency-version: prefer-lowest }
1717

18+
env:
19+
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
20+
1821
name: Tests P${{ matrix.php }} - SF${{ matrix.symfony }} - ubuntu-latest - ${{ matrix.dependency-version }}
1922
steps:
2023

@@ -33,14 +36,7 @@ jobs:
3336
php-version: ${{ matrix.php }}
3437
extensions: dom, mbstring, zip
3538
coverage: none
36-
37-
- name: Require Symfony Version
38-
run: >
39-
composer require
40-
"symfony/config:${{ matrix.symfony }}"
41-
"symfony/dependency-injection:${{ matrix.symfony }}"
42-
"symfony/http-kernel:${{ matrix.symfony }}"
43-
--no-interaction --no-update
39+
tools: flex
4440

4541
- name: Install Composer dependencies
4642
run: composer update --${{ matrix.dependency-version }} --no-interaction --prefer-dist

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"laravel/pint": "^1.24.0",
3030
"phpstan/phpstan": "^2.1.22",
3131
"rector/rector": "^2.1.5",
32-
"symfony/phpunit-bridge": "^6.4|^7.3",
32+
"symfony/phpunit-bridge": "^6.4.25|^7.3",
3333
"symfony/framework-bundle": "^6.4|^7.3"
3434
},
3535
"autoload": {

0 commit comments

Comments
 (0)