Skip to content

Commit 9f1da19

Browse files
committed
Add Symfony 8 support
1 parent d4512df commit 9f1da19

1 file changed

Lines changed: 66 additions & 26 deletions

File tree

.github/workflows/ci.yml

Lines changed: 66 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -22,37 +22,77 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
26-
name_suffix: ['']
27-
stability: ['stable']
28-
composer_flags: ['']
25+
php:
26+
[
27+
"7.2",
28+
"7.3",
29+
"7.4",
30+
"8.0",
31+
"8.1",
32+
"8.2",
33+
"8.3",
34+
"8.4",
35+
"8.5",
36+
]
37+
symfony: ["4.4.*", "5.4.*", "6.4.*", "7.4.*", "8.0.*"]
38+
name_suffix: [""]
39+
stability: ["stable"]
40+
composer_flags: [""]
2941
include:
30-
- php: '7.2'
31-
name_suffix: ' (lowest deps)'
32-
stability: 'stable'
33-
composer_flags: '--prefer-lowest'
34-
- php: '8.2'
35-
name_suffix: ' (dev deps)'
36-
stability: 'dev'
37-
composer_flags: ''
42+
- php: "7.2"
43+
name_suffix: " (lowest deps)"
44+
stability: "stable"
45+
composer_flags: "--prefer-lowest"
46+
- php: "8.5"
47+
name_suffix: " (dev deps)"
48+
stability: "dev"
49+
composer_flags: ""
50+
51+
exclude:
52+
# Symfony 4.4 doesn't support PHP 8.1+
53+
- { php: "8.1", symfony: "4.4.*" }
54+
- { php: "8.2", symfony: "4.4.*" }
55+
- { php: "8.3", symfony: "4.4.*" }
56+
- { php: "8.4", symfony: "4.4.*" }
57+
- { php: "8.5", symfony: "4.4.*" }
58+
59+
# Symfony 6.4 requires PHP 8.1+
60+
- { php: "7.2", symfony: "6.4.*" }
61+
- { php: "7.3", symfony: "6.4.*" }
62+
- { php: "7.4", symfony: "6.4.*" }
63+
- { php: "8.0", symfony: "6.4.*" }
64+
65+
# Symfony 7.4 requires PHP 8.2+
66+
- { php: "7.2", symfony: "7.4.*" }
67+
- { php: "7.3", symfony: "7.4.*" }
68+
- { php: "7.4", symfony: "7.4.*" }
69+
- { php: "8.0", symfony: "7.4.*" }
70+
- { php: "8.1", symfony: "7.4.*" }
71+
72+
# Symfony 8.0 requires PHP 8.2+
73+
- { php: "7.2", symfony: "8.0.*" }
74+
- { php: "7.3", symfony: "8.0.*" }
75+
- { php: "7.4", symfony: "8.0.*" }
76+
- { php: "8.0", symfony: "8.0.*" }
77+
- { php: "8.1", symfony: "8.0.*" }
3878

3979
steps:
40-
- uses: actions/checkout@v3
80+
- uses: actions/checkout@v3
4181

42-
- uses: shivammathur/setup-php@v2
43-
with:
44-
coverage: "none"
45-
php-version: "${{ matrix.php }}"
82+
- uses: shivammathur/setup-php@v2
83+
with:
84+
coverage: "none"
85+
php-version: "${{ matrix.php }}"
4686

47-
- name: Configure stability
48-
if: "matrix.stability != 'stable'"
49-
run: composer config minimum-stability ${{ matrix.stability }}
87+
- name: Configure stability
88+
if: "matrix.stability != 'stable'"
89+
run: composer config minimum-stability ${{ matrix.stability }}
5090

51-
- name: Install dependencies
52-
run: composer update --ansi --no-progress --prefer-dist ${{ matrix.composer_flags }}
91+
- name: Install dependencies
92+
run: composer update --ansi --no-progress --prefer-dist ${{ matrix.composer_flags }}
5393

54-
- name: Install PHPUnit
55-
run: vendor/bin/simple-phpunit install
94+
- name: Install PHPUnit
95+
run: vendor/bin/simple-phpunit install
5696

57-
- name: Run tests
58-
run: vendor/bin/simple-phpunit -v --colors=always
97+
- name: Run tests
98+
run: vendor/bin/simple-phpunit -v --colors=always

0 commit comments

Comments
 (0)