Skip to content

Commit 203ec6b

Browse files
Add global lower bounds to deps on the CI
1 parent bde5221 commit 203ec6b

File tree

6 files changed

+16
-6
lines changed

6 files changed

+16
-6
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "symfony/composer-lowest",
3+
"type": "metapackage",
4+
"conflict": {
5+
"symfony/polyfill-php83": "<1.30"
6+
}
7+
}

.github/workflows/unit-tests.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,13 @@ jobs:
172172
local ok=0
173173
local title="$1$FLIP"
174174
local start=$(date -u +%s)
175+
176+
if [[ "${{ matrix.mode }}" = low-deps ]]; then
177+
cd $1
178+
composer config -q repositories.symfony '{"type": "path", "url": "$OLDPWD/.github/composer-lowest"}'
179+
composer require -q --no-update symfony/composer-lowest
180+
fi
181+
175182
OUTPUT=$(bash -xc "$2" 2>&1) || ok=$?
176183
local end=$(date -u +%s)
177184
@@ -197,7 +204,7 @@ jobs:
197204
fi
198205
199206
if [[ "${{ matrix.mode }}" = low-deps ]]; then
200-
echo "$COMPONENTS" | xargs -n1 | parallel -j +3 "_run_tests {} 'cd {} && $COMPOSER_UP --prefer-lowest --prefer-stable && $PHPUNIT --do-not-fail-on-deprecation'"
207+
echo "$COMPONENTS" | xargs -n1 | parallel -j +3 "_run_tests {} '$COMPOSER_UP --prefer-lowest --prefer-stable && $PHPUNIT --do-not-fail-on-deprecation'"
201208
202209
exit 0
203210
fi

src/Symfony/Bundle/FrameworkBundle/composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
"symfony/mailer": "<6.4",
9696
"symfony/messenger": "<6.4",
9797
"symfony/mime": "<6.4",
98-
"symfony/polyfill-php83": "<1.30",
9998
"symfony/property-info": "<6.4",
10099
"symfony/property-access": "<6.4",
101100
"symfony/runtime": "<6.4.13|>=7.0,<7.1.6",

src/Symfony/Component/HttpFoundation/composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
"require": {
1919
"php": ">=8.2",
2020
"symfony/deprecation-contracts": "^2.5|^3",
21-
"symfony/polyfill-mbstring": "^1.1",
22-
"symfony/polyfill-php83": "^1.30"
21+
"symfony/polyfill-mbstring": "^1.1"
2322
},
2423
"require-dev": {
2524
"doctrine/dbal": "^3.6|^4",

src/Symfony/Component/HttpKernel/composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
"symfony/http-client-contracts": "<2.5",
6565
"symfony/mailer": "<6.4",
6666
"symfony/messenger": "<6.4",
67-
"symfony/polyfill-php83": "<1.30",
6867
"symfony/translation": "<6.4",
6968
"symfony/translation-contracts": "<2.5",
7069
"symfony/twig-bridge": "<6.4",

src/Symfony/Component/Mailer/composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"symfony/http-kernel": "<6.4",
3636
"symfony/messenger": "<6.4",
3737
"symfony/mime": "<6.4",
38-
"symfony/polyfill-php83": "<1.30",
3938
"symfony/twig-bridge": "<6.4"
4039
},
4140
"autoload": {

0 commit comments

Comments
 (0)