Skip to content

Commit 846216b

Browse files
authored
Merge pull request #26 from loic425/feature/add-support-for-symfony-5-and-6
Add support for Symfony 5 and 6
2 parents 0f6382f + 344c64b commit 846216b

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
php: ["7.3", "7.4", "8.0"]
20-
symfony: ["4.4.*", "5.1.*"]
19+
php: ["7.4", "8.0", "8.1"]
20+
symfony: ["5.3.*", "5.4.*", "6.0.*"]
21+
exclude:
22+
- symfony: "6.0.*"
23+
php: "7.4"
2124

2225
steps:
2326
-
@@ -31,10 +34,17 @@ jobs:
3134
coverage: none
3235

3336
-
34-
name: Update Symfony version
37+
name: Restrict Symfony version
3538
if: matrix.symfony != ''
3639
run: |
37-
composer require symfony/dependency-injection:${{ matrix.symfony }} --no-update --no-scripts
40+
composer global require --no-progress --no-scripts --no-plugins "symfony/flex"
41+
composer config extra.symfony.require "${{ matrix.symfony }}"
42+
composer config minimum-stability "dev"
43+
composer config prefer-stable true
44+
45+
- name: Remove Phpspec
46+
if: ${{ contains( matrix.symfony, '6.0.*' ) }}
47+
run: composer remove --dev phpspec/phpspec --no-update
3848

3949
-
4050
name: Install dependencies
@@ -45,5 +55,10 @@ jobs:
4555
run: composer analyse
4656

4757
-
48-
name: Run tests
49-
run: composer test
58+
name: Run phpspec
59+
if: ${{ true != contains( matrix.symfony, '6.0.*' ) }}
60+
run: vendor/bin/phpspec run --format dot -vvv --no-interaction
61+
62+
-
63+
name: Run Behat
64+
run: vendor/bin/behat -f progress --strict -vvv --no-interaction --colors

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
}
1010
],
1111
"require": {
12-
"php": "^7.1|^8.0",
12+
"php": "^7.4 || ^8.0",
1313

1414
"behat/behat": "^3.4",
15-
"symfony/dependency-injection": "^3.4|^4.1"
15+
"symfony/dependency-injection": "^5.3 || ^6.0"
1616
},
1717
"require-dev": {
18-
"friends-of-behat/test-context": "^1.1",
18+
"friends-of-behat/test-context": "^1.3",
1919
"phpspec/phpspec": "^7.0"
2020
},
2121
"autoload": {

0 commit comments

Comments
 (0)