45
45
dependency : symfony
46
46
47
47
tests :
48
- name : ${{ matrix.job-name }}
48
+ name : PHP ${{ matrix.php-version }} & Sf ${{ matrix.symfony-version }} - ${{ matrix.job-name }}
49
49
needs : [fetch-supported-versions]
50
50
runs-on : ubuntu-latest
51
51
permissions :
@@ -61,28 +61,28 @@ jobs:
61
61
php-version : ' ${{ needs.fetch-supported-versions.outputs.php-max }}'
62
62
symfony-version : ' ${{ needs.fetch-supported-versions.outputs.symfony-max }}'
63
63
# Fix - behat/gherkin => Avoid issue with behat <-> gherkin packages (See https://github.com/Behat/Gherkin/issues/317)
64
- pkg-extra-constraints : behat/gherkin:~4.12.0
65
- - job-name : Up to date versions - Special case - Symfony 5.4
64
+ pkg-extra-constraints : --with ' behat/gherkin:~4.12.0'
65
+ - job-name : Up to date versions - Sf 6.4 case
66
66
php-version : ' ${{ needs.fetch-supported-versions.outputs.php-max }}'
67
- symfony-version : ' 5 .4'
67
+ symfony-version : ' 6 .4'
68
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' || '' }}
69
+ pkg-extra-constraints : --with 'behat/gherkin:~4.12.0'
71
70
- job-name : Bare minimum # => Lowest versions allowed by composer config
72
71
php-version : ' ${{ needs.fetch-supported-versions.outputs.php-min }}'
73
72
symfony-version : ' ${{ needs.fetch-supported-versions.outputs.symfony-min }}'
74
- - job-name : Bare minimum - Special case - Symfony 5.4
75
- php-version : ' ${{ needs.fetch-supported-versions.outputs.php-min }}'
76
- symfony-version : ' 5.4'
77
- - job-name : Late migration - PHP # => Highest symfony version with lowest php version allowed by composer config
73
+ - job-name : Bare minimum - Sf 6.4 case
78
74
# Fix - Sf 6.4 require php 8.1 minimum !
79
- php-version : ${{ ( needs.fetch-supported-versions.outputs.symfony-max == '6.4' && needs.fetch-supported-versions.outputs.php-min == '8.0' ) && '8.1' || needs.fetch-supported-versions.outputs.php-min }}
75
+ php-version : ${{ ( needs.fetch-supported-versions.outputs.php-min == '8.0' ) && '8.1' || needs.fetch-supported-versions.outputs.php-min }}
76
+ symfony-version : ' 6.4'
77
+ - job-name : Late PHP migration # => Highest symfony version with lowest php version allowed by composer config
78
+ # Fix - Sf 7.0 require php 8.1 minimum, most of deps require 8.2 !
79
+ php-version : ${{ ( needs.fetch-supported-versions.outputs.symfony-max == '7.0' && needs.fetch-supported-versions.outputs.php-min == '8.0' ) && '8.2' || needs.fetch-supported-versions.outputs.php-min }}
80
80
symfony-version : ' ${{ needs.fetch-supported-versions.outputs.symfony-max }}'
81
- - job-name : Late migration - Symfony # => Lowest symfony version with highest php version allowed by composer config
81
+ - job-name : Late Symfony migration # => Lowest symfony version with highest php version allowed by composer config
82
82
php-version : ' ${{ needs.fetch-supported-versions.outputs.php-max }}'
83
83
symfony-version : ' ${{ needs.fetch-supported-versions.outputs.symfony-min }}'
84
84
# Fix - behat/gherkin => Avoid issue with behat <-> gherkin packages (See https://github.com/Behat/Gherkin/issues/317)
85
- pkg-extra-constraints : behat/gherkin:~4.12.0
85
+ pkg-extra-constraints : --with ' behat/gherkin:~4.12.0'
86
86
steps :
87
87
- name : Check out code
88
88
uses : actions/checkout@v5
@@ -120,8 +120,8 @@ jobs:
120
120
- name : Build with PHP ${{ steps.setup-php.outputs.php-version }} & Symfony ${{ matrix.symfony-version }}
121
121
run : |
122
122
SF_CONSTRAINT="~${{ matrix.symfony-version }}.0"
123
- composer require -W \
124
- symfony/validator:${SF_CONSTRAINT} \
123
+ composer update --no-install --with-all-dependencies --minimal-changes \
124
+ --with " symfony/validator:${SF_CONSTRAINT}" \
125
125
${{ matrix.pkg-extra-constraints }} \
126
126
&& make build
127
127
@@ -202,8 +202,8 @@ jobs:
202
202
- name : Build with PHP ${{ steps.setup-php.outputs.php-version }} & Symfony ${{ env.SYMFONY_VERSION }}
203
203
run : |
204
204
SF_CONSTRAINT="~${{ env.SYMFONY_VERSION }}.0"
205
- composer require -W \
206
- symfony/validator:${SF_CONSTRAINT} \
205
+ composer update --no-install --with-all-dependencies --minimal-changes \
206
+ --with " symfony/validator:${SF_CONSTRAINT}" \
207
207
&& make build
208
208
209
209
- name : ComposerRequireChecker
@@ -214,7 +214,7 @@ jobs:
214
214
uses : actions/dependency-review-action@v4
215
215
216
216
nightly-tests :
217
- name : Nightly - ${{ matrix.job-name }}
217
+ name : Nightly - PHP ${{ matrix.php-version }} & Sf ${{ matrix.symfony-version }} - ${{ matrix.job-name }}
218
218
needs : [ fetch-supported-versions, tests ]
219
219
if : ${{ github.event_name == 'push' || ( github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'with-nightly-tests') ) }}
220
220
runs-on : ubuntu-latest
@@ -227,29 +227,29 @@ jobs:
227
227
fail-fast : false
228
228
matrix :
229
229
include :
230
- - job-name : PHP - With highest supported Symfony versions
230
+ - job-name : PHP with highest supported Symfony versions
231
231
php-version : ${{ needs.fetch-supported-versions.outputs.php-next }}
232
232
symfony-version : ${{ needs.fetch-supported-versions.outputs.symfony-max }}
233
233
# Fix - behat/gherkin => Avoid issue with behat <-> gherkin packages (See https://github.com/Behat/Gherkin/issues/317)
234
- pkg-extra-constraints : behat/gherkin:~4.12.0
235
- - job-name : PHP - With lowest supported Symfony versions
234
+ pkg-extra-constraints : --with ' behat/gherkin:~4.12.0'
235
+ - job-name : PHP with lowest supported Symfony versions
236
236
php-version : ${{ needs.fetch-supported-versions.outputs.php-next }}
237
237
symfony-version : ${{ needs.fetch-supported-versions.outputs.symfony-min }}
238
238
# Fix - behat/gherkin => Avoid issue with behat <-> gherkin packages (See https://github.com/Behat/Gherkin/issues/317)
239
- pkg-extra-constraints : behat/gherkin:~4.12.0
240
- - job-name : Symfony - With highest supported PHP version
239
+ pkg-extra-constraints : --with ' behat/gherkin:~4.12.0'
240
+ - job-name : Symfony with highest supported PHP version
241
241
php-version : ${{ needs.fetch-supported-versions.outputs.php-max }}
242
242
symfony-version : ${{ needs.fetch-supported-versions.outputs.symfony-next }}
243
243
# Fix - behat/gherkin => Avoid issue with behat <-> gherkin packages (See https://github.com/Behat/Gherkin/issues/317)
244
244
# Fix - symfony/framework-bundle - Framework bundle <7.0 require php 8.1 minimum !
245
- 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' || '' }}
246
- - job-name : Symfony - With lowest supported PHP version
247
- # Fix - Sf 7.0 require php 8.1 minimum, most of deps require 8.2 !
248
- 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 }}
245
+ pkg-extra-constraints : --with ' behat/gherkin:~4.12.0'
246
+ - job-name : Symfony with lowest supported PHP version
247
+ # Fix - symfony/validator 7.1 require php 8.2 minimum !
248
+ php-version : ${{ ( needs.fetch-supported-versions.outputs.symfony-next == '7.1 ' && needs.fetch-supported-versions.outputs.php-min == '8.0' ) && '8.2' || needs.fetch-supported-versions.outputs.php-min }}
249
249
symfony-version : ${{ needs.fetch-supported-versions.outputs.symfony-next }}
250
250
# Fix - behat/gherkin => Avoid issue with behat <-> gherkin packages (See https://github.com/Behat/Gherkin/issues/317)
251
251
# Fix - symfony/framework-bundle - Framework bundle <7.0 require php 8.1 minimum !
252
- 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' || '' }}
252
+ pkg-extra-constraints : --with ' behat/gherkin:~4.12.0'
253
253
254
254
steps :
255
255
- name : Check out code
@@ -282,8 +282,8 @@ jobs:
282
282
run : |
283
283
SF_CONSTRAINT="~${{ matrix.symfony-version }}.0@dev"
284
284
composer config minimum-stability dev \
285
- && composer require -W \
286
- symfony/validator:${SF_CONSTRAINT} \
285
+ && composer update --no-install --with-all-dependencies --minimal-changes \
286
+ --with " symfony/validator:${SF_CONSTRAINT}" \
287
287
${{ matrix.pkg-extra-constraints }} \
288
288
&& make build
289
289
0 commit comments