Skip to content

Commit 614f455

Browse files
run tests on each supported symfony minor version
1 parent bc708b8 commit 614f455

File tree

2 files changed

+26
-45
lines changed

2 files changed

+26
-45
lines changed

.github/workflows/symfony.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,26 @@ jobs:
1919
- '8.2'
2020
- '8.3'
2121
- '8.4'
22-
deps:
23-
- 'highest'
24-
- 'lowest'
22+
symfony_version:
23+
- '5.4.*'
24+
- '6.0.*'
25+
- '6.1.*'
26+
- '6.2.*'
27+
- '6.3.*'
28+
- '6.4.*'
29+
exclude:
30+
# symfony 6.1+ requires PHP 8.1+
31+
- php: '8.0'
32+
symfony_version: '6.1.*'
33+
- php: '8.0'
34+
symfony_version: '6.2.*'
35+
- php: '8.0'
36+
symfony_version: '6.3.*'
37+
- php: '8.0'
38+
symfony_version: '6.4.*'
39+
# deps:
40+
# - 'highest'
41+
# - 'lowest'
2542

2643
steps:
2744
- uses: actions/checkout@v3
@@ -49,14 +66,19 @@ jobs:
4966
restore-keys: |
5067
${{ runner.os }}-${{ matrix.php }}-${{ matrix.composer }}-composer-
5168
69+
- name: Set Symfony minor version
70+
run: |
71+
sed -i 's|\("symfony/.*"\): ".*"|\1: "${{ matrix.symfony_version }}"|' composer.json
72+
working-directory: ./
73+
5274
- name: Validate composer.json and composer.lock
5375
run: composer validate
5476
working-directory: ./
5577

5678
- name: Install dependencies
5779
uses: ramsey/composer-install@v3
5880
with:
59-
dependency-versions: '${{ matrix.deps }}'
81+
# dependency-versions: '${{ matrix.deps }}'
6082
working-directory: ./
6183

6284
- name: Start MySQL

.github/workflows/test_install.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)