Skip to content

Commit de68ded

Browse files
feat: allow Behat 4.x-dev and Symfony 8 alongside Behat 3 / Symfony 5–7
Widen behat/behat to ^3.0 || 4.x-dev@dev (Behat 4 branch supports Symfony 8; stable Behat 3 does not). Widen symfony/* to include ^8.0. Set minimum-stability stable with prefer-stable so default resolution stays on tagged releases. CI: add PHP 8.4 job with Symfony 8.0.*, pinning behat/behat:4.x-dev before Symfony constraints (PHP 8.4+ required by Symfony 8). Co-authored-by: Zakhar <zahar.guzenko@gmail.com>
1 parent 708c335 commit de68ded

2 files changed

Lines changed: 16 additions & 8 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
- php: '8.1'
2626
symfony-versions: '^5.4'
2727
coverage: 'none'
28+
- description: 'Symfony 8 + Behat 4.x-dev'
29+
php: '8.4'
30+
symfony-versions: '8.0.*'
31+
coverage: 'none'
2832
- description: 'Log Code Coverage'
2933
php: '8.4'
3034
coverage: 'xdebug'
@@ -60,6 +64,10 @@ jobs:
6064
key: ${{ runner.os }}-${{ matrix.php }}-${{ matrix.symfony-versions }}-composer-${{ hashFiles('composer.json') }}
6165
restore-keys: ${{ runner.os }}-${{ matrix.php }}-${{ matrix.symfony-versions }}-composer
6266

67+
- name: Use Behat 4.x-dev with Symfony 8
68+
if: matrix.symfony-versions == '8.0.*'
69+
run: composer require behat/behat:4.x-dev --no-update --no-scripts
70+
6371
- name: Update Symfony version
6472
if: matrix.symfony-versions != ''
6573
run: |

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,17 @@
2525
}
2626
],
2727
"license": "MIT",
28+
"minimum-stability": "stable",
29+
"prefer-stable": true,
2830
"require": {
2931
"ext-json": "*",
3032
"php": "^8.1",
31-
"behat/behat": "^3.0",
32-
"symfony/config": "^5.4 || ^6.4 || ^7.0",
33-
"symfony/dependency-injection": "^5.4.34 || ^6.4 || ^7.1",
34-
"symfony/http-client": "^5.4 || ^6.4 || ^7.1",
35-
"symfony/http-kernel": "^5.4 || ^6.4 || ^7.1",
36-
"symfony/routing": "^5.4 || ^6.4 || ^7.1",
33+
"behat/behat": "^3.0 || 4.x-dev@dev",
34+
"symfony/config": "^5.4 || ^6.4 || ^7.0 || ^8.0",
35+
"symfony/dependency-injection": "^5.4.34 || ^6.4 || ^7.1 || ^8.0",
36+
"symfony/http-client": "^5.4 || ^6.4 || ^7.1 || ^8.0",
37+
"symfony/http-kernel": "^5.4 || ^6.4 || ^7.1 || ^8.0",
38+
"symfony/routing": "^5.4 || ^6.4 || ^7.1 || ^8.0",
3739
"macpaw/similar-arrays": "^1.0"
3840
},
3941
"require-dev": {
@@ -71,8 +73,6 @@
7173
"config": {
7274
"allow-plugins": {
7375
"dealerdirect/phpcodesniffer-composer-installer": true
74-
},
75-
"platform": {
7676
}
7777
}
7878
}

0 commit comments

Comments
 (0)