Skip to content

Commit d86a489

Browse files
authored
Increase CI supported versions (#32)
1 parent 7c75569 commit d86a489

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

.github/workflows/reusable-CI-workflow.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,14 @@ jobs:
6060
- job-name: Up to date versions # => Highest versions allowed by composer config
6161
php-version: '${{ needs.fetch-supported-versions.outputs.php-max }}'
6262
symfony-version: '${{ needs.fetch-supported-versions.outputs.symfony-max }}'
63-
## Fix - behat/gherkin => Avoid issue with behat <-> gherkin packages (See https://github.com/Behat/Gherkin/issues/317)
63+
# Fix - behat/gherkin => Avoid issue with behat <-> gherkin packages (See https://github.com/Behat/Gherkin/issues/317)
6464
pkg-extra-constraints: behat/gherkin:~4.12.0
6565
- job-name: Up to date versions - Special case - Symfony 5.4
6666
php-version: '${{ needs.fetch-supported-versions.outputs.php-max }}'
6767
symfony-version: '5.4'
68-
## Fix - behat/gherkin => Avoid issue with behat <-> gherkin packages (See https://github.com/Behat/Gherkin/issues/317)
69-
pkg-extra-constraints: behat/gherkin:~4.12.0
68+
# Fix - behat/gherkin => Avoid issue with behat <-> gherkin packages (See https://github.com/Behat/Gherkin/issues/317)
69+
# Fix - symfony/yaml - Avoid issue with Sf YAML 6.4+ and Framework bundle
70+
pkg-extra-constraints: behat/gherkin:~4.12.0 ${{ ( needs.fetch-supported-versions.outputs.symfony-max == '6.4' ) && 'symfony/yaml:~6.4.0' || '' }}
7071
- job-name: Bare minimum # => Lowest versions allowed by composer config
7172
php-version: '${{ needs.fetch-supported-versions.outputs.php-min }}'
7273
symfony-version: '${{ needs.fetch-supported-versions.outputs.symfony-min }}'
@@ -244,13 +245,15 @@ jobs:
244245
php-version: ${{ needs.fetch-supported-versions.outputs.php-max }}
245246
symfony-version: ${{ needs.fetch-supported-versions.outputs.symfony-next }}
246247
# Fix - behat/gherkin => Avoid issue with behat <-> gherkin packages (See https://github.com/Behat/Gherkin/issues/317)
247-
pkg-extra-constraints: behat/gherkin:~4.12.0
248+
# Fix - symfony/framework-bundle - Framework bundle <7.0 require php 8.1 minimum !
249+
pkg-extra-constraints: behat/gherkin:~4.12.0 ${{ ( needs.fetch-supported-versions.outputs.symfony-next == '7.0' && needs.fetch-supported-versions.outputs.php-max == '8.4' ) && 'symfony/framework-bundle:~7.0.0@dev' || '' }}
248250
- job-name: Symfony - With lowest supported PHP version
249251
# Fix - Sf 7.0 require php 8.1 minimum, most of deps require 8.2 !
250-
php-version: ${{ ( needs.fetch-supported-versions.outputs.symfony-next == '6.3' && needs.fetch-supported-versions.outputs.php-min == '8.0' ) && '8.1' || needs.fetch-supported-versions.outputs.php-min }}
252+
php-version: ${{ ( needs.fetch-supported-versions.outputs.symfony-next == '7.0' && needs.fetch-supported-versions.outputs.php-min == '8.0' ) && '8.2' || needs.fetch-supported-versions.outputs.php-min }}
251253
symfony-version: ${{ needs.fetch-supported-versions.outputs.symfony-next }}
252254
# Fix - behat/gherkin => Avoid issue with behat <-> gherkin packages (See https://github.com/Behat/Gherkin/issues/317)
253-
pkg-extra-constraints: behat/gherkin:~4.12.0
255+
# Fix - symfony/framework-bundle - Framework bundle <7.0 require php 8.1 minimum !
256+
pkg-extra-constraints: behat/gherkin:~4.12.0 ${{ ( needs.fetch-supported-versions.outputs.symfony-next == '7.0' && needs.fetch-supported-versions.outputs.php-min == '8.0' ) && 'symfony/framework-bundle:~7.0.0@dev' || '' }}
254257

255258
steps:
256259
- name: Check out code
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"php": {"min": "8.0", "max": "8.2", "next": "8.3"},
3-
"symfony": {"min": "4.4", "max": "6.0", "next": "6.3"}
2+
"php": {"min": "8.0", "max": "8.4", "next": "8.5"},
3+
"symfony": {"min": "4.4", "max": "6.4", "next": "7.0"}
44
}

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
"require-dev": {
4242
"behat/behat": "^3.9.0,<=3.16.1",
4343
"dvdoug/behat-code-coverage": "^5.0",
44-
"matthiasnoback/symfony-config-test": "^4.0",
45-
"matthiasnoback/symfony-dependency-injection-test": "^4.0",
44+
"matthiasnoback/symfony-config-test": "^4.0 || ^5.0",
45+
"matthiasnoback/symfony-dependency-injection-test": "^4.0 || ^5.0",
4646
"phpspec/prophecy": "^1.15",
4747
"phpspec/prophecy-phpunit": "^2.0",
4848
"phpunit/php-code-coverage": "^9.2.4",

0 commit comments

Comments
 (0)