Skip to content

Commit 12417e5

Browse files
committed
Fix
1 parent 155614b commit 12417e5

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

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

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,15 @@ jobs:
6464
php-prefer-latest: true
6565
symfony-version: '${{ inputs.symfony-max-version }}'
6666
composer-prefer-lowest: false
67+
# Fix - behat/gherkin => Avoid issue with behat <-> gherkin packages (See https://github.com/Behat/Gherkin/issues/317)
68+
pkg-extra-constraints: behat/gherkin:~4.12.0
6769
# Late symfony migration => Lowest symfony version with latest php version allowed by composer config
6870
- php-version: '${{ inputs.php-max-version }}'
6971
php-prefer-latest: true
7072
symfony-version: '${{ inputs.symfony-min-version }}'
7173
composer-prefer-lowest: true
74+
# Fix - behat/gherkin => Avoid issue with behat <-> gherkin packages (See https://github.com/Behat/Gherkin/issues/317)
75+
pkg-extra-constraints: behat/gherkin:~4.12.0
7276
# Late php migration => Latest symfony version with lowest php version allowed by composer config
7377
- php-version: '${{ inputs.php-min-version }}'
7478
php-prefer-latest: false
@@ -120,14 +124,15 @@ jobs:
120124
run: |
121125
SF_VERSION=${{ matrix.symfony-version }}
122126
# Issue with ParamterBag below 4.4.30 => https://github.com/symfony/symfony/commit/3eca446b21607ea1c7a865ece2dd8254c33679cc
123-
test '${{ matrix.symfony-version }}' = '4.4' && test '${{ matrix.php-version }}' = '8.2' && SF_VERSION=4.4.30 || SF_VERSION=$SF_VERSION".0"
127+
test '${{ matrix.symfony-version }}' = '4.4' && test '${{ matrix.php-version }}' = '8.2' && SF_VERSION=4.4.30 || SF_VERSION="${SF_VERSION}.0"
124128
composer require -W ${{ env.COMPOSER_OPTIONS }} ${{ matrix.composer-prefer-lowest && '--prefer-lowest' || '' }} \
125-
"symfony/http-foundation:~"$SF_VERSION \
126-
"symfony/http-kernel:~"$SF_VERSION \
127-
"symfony/config:~"$SF_VERSION \
128-
"symfony/dependency-injection:~"$SF_VERSION \
129-
"symfony/event-dispatcher:~"$SF_VERSION \
130-
"symfony/routing:~"$SF_VERSION \
129+
symfony/http-foundation:~${SF_VERSION} \
130+
symfony/http-kernel:~${SF_VERSION} \
131+
symfony/config:~${SF_VERSION} \
132+
symfony/dependency-injection:~${SF_VERSION} \
133+
symfony/event-dispatcher:~${SF_VERSION} \
134+
symfony/routing:~${SF_VERSION} \
135+
${{ matrix.pkg-extra-constraints }} \
131136
&& composer update ${{ env.COMPOSER_OPTIONS }} ${{ matrix.composer-prefer-lowest && '--prefer-lowest' || '' }} \
132137
&& make build
133138

0 commit comments

Comments
 (0)