Skip to content

Commit 74d64aa

Browse files
authored
feat: Add support for Symfony 7 (#12)
1 parent 70311fb commit 74d64aa

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/tests.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,21 @@ concurrency:
1616
jobs:
1717
tests:
1818
runs-on: "ubuntu-latest"
19-
name: "Tests with PHP ${{ matrix.php }}"
19+
name: "Tests with PHP ${{ matrix.php }} and Symfony ${{ matrix.symfony }}"
2020
strategy:
2121
fail-fast: true
2222
matrix:
2323
php:
2424
- "8.1"
2525
- "8.2"
2626
- "8.3"
27+
symfony:
28+
- "unchanged"
29+
- "6.*.*"
30+
- "7.*.*"
31+
exclude:
32+
- php: "8.1"
33+
symfony: "7.*.*"
2734

2835
steps:
2936
- name: "Check out repository code"
@@ -33,7 +40,11 @@ jobs:
3340
uses: "shivammathur/setup-php@v2"
3441
with:
3542
php-version: "${{ matrix.php }}"
36-
tools: "composer"
43+
tools: "composer, flex"
44+
45+
- name: "Configure Symfony version"
46+
if: "matrix.symfony != 'unchanged'"
47+
run: "echo \"SYMFONY_REQUIRE=${{ matrix.symfony }}\" >> $GITHUB_ENV"
3748

3849
- name: "Install Composer dependencies"
3950
uses: "ramsey/composer-install@v2"

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
],
1515
"require": {
1616
"php": "^8.1",
17-
"symfony/filesystem": "^6.3",
17+
"symfony/filesystem": "^6.3 || ^7.0",
1818
"thecodingmachine/safe": "^2.0"
1919
},
2020
"require-dev": {
2121
"bamarni/composer-bin-plugin": "^1.4",
2222
"ergebnis/composer-normalize": "^2.28",
2323
"infection/infection": ">=0.26",
2424
"phpunit/phpunit": "^10.3",
25-
"symfony/finder": "^6.3"
25+
"symfony/finder": "^6.3 || ^7.0"
2626
},
2727
"prefer-stable": true,
2828
"autoload": {

0 commit comments

Comments
 (0)