Skip to content

Commit 6eb0cb8

Browse files
[Maintenance] Bump Symfony
1 parent c6930ed commit 6eb0cb8

2 files changed

Lines changed: 45 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ on:
1111

1212
jobs:
1313
tests:
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-latest
1515
name: "PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}"
1616
strategy:
1717
fail-fast: false
1818
matrix:
1919
php: ["8.1", "8.2", "8.3"]
20-
symfony: ["^5.4", "^6.4", "7.0"]
20+
symfony: ["^5.4", "^6.4", "^7.4"]
2121
exclude:
2222
- php: "8.1"
23-
symfony: "7.0"
23+
symfony: "^7.4"
2424

2525
steps:
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v6
2727

2828
- name: Setup PHP
2929
uses: shivammathur/setup-php@v2
@@ -35,7 +35,7 @@ jobs:
3535
if: matrix.symfony != ''
3636
run: |
3737
composer global config --no-plugins allow-plugins.symfony/flex true
38-
composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^1.11"
38+
composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^2.4"
3939
composer config extra.symfony.require "${{ matrix.symfony }}"
4040
4141
- name: Install dependencies
@@ -46,3 +46,41 @@ jobs:
4646

4747
- name: Run tests
4848
run: vendor/bin/behat --strict -vvv --no-interaction
49+
50+
unstable:
51+
runs-on: ubuntu-latest
52+
name: "Unstable - PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}"
53+
needs: tests
54+
strategy:
55+
fail-fast: false
56+
matrix:
57+
php: ["8.2", "8.3", "8.4"]
58+
symfony: ["^7.4"]
59+
include:
60+
- php: "8.4"
61+
symfony: "^8.0"
62+
63+
steps:
64+
- uses: actions/checkout@v6
65+
66+
- name: Setup PHP
67+
uses: shivammathur/setup-php@v2
68+
with:
69+
php-version: "${{ matrix.php }}"
70+
coverage: none
71+
72+
- name: Restrict Symfony version
73+
if: matrix.symfony != ''
74+
run: |
75+
composer global config --no-plugins allow-plugins.symfony/flex true
76+
composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^2.4"
77+
composer config extra.symfony.require "${{ matrix.symfony }}"
78+
79+
- name: Install dependencies
80+
run: |
81+
composer require behat/behat:"4.x-dev as 3.99" --no-install
82+
composer update
83+
84+
- name: Run tests
85+
run: vendor/bin/behat --strict -vvv --no-interaction
86+
continue-on-error: true

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
],
1111
"require": {
1212
"php": "^8.1",
13-
"behat/behat": "^3.8",
14-
"symfony/dependency-injection": "^5.4 || ^6.4 || ^7.0"
13+
"behat/behat": "^3.8 || ^4.0",
14+
"symfony/dependency-injection": "^5.4 || ^6.4 || ^7.4 || ^8.0"
1515
},
1616
"require-dev": {
1717
"friends-of-behat/test-context": "^1.0"

0 commit comments

Comments
 (0)