Skip to content

Commit 1b64421

Browse files
committed
Use --ignore-platform-req=php+
1 parent b508133 commit 1b64421

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/nightly.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ jobs:
550550
git clone "https://github.com/amphp/$repository.git" "amphp-$repository" --depth 1
551551
cd "amphp-$repository"
552552
git rev-parse HEAD
553-
php /usr/bin/composer install --no-progress --ignore-platform-reqs
553+
php /usr/bin/composer install --no-progress --ignore-platform-req=php+
554554
vendor/bin/phpunit || EXIT_CODE=$?
555555
if [ ${EXIT_CODE:-0} -gt 128 ]; then
556556
X=1;
@@ -564,7 +564,7 @@ jobs:
564564
git clone https://github.com/laravel/framework.git --depth=1
565565
cd framework
566566
git rev-parse HEAD
567-
php /usr/bin/composer install --no-progress --ignore-platform-reqs
567+
php /usr/bin/composer install --no-progress --ignore-platform-req=php+
568568
# Hack to disable a test that hangs
569569
php -r '$c = file_get_contents("tests/Filesystem/FilesystemTest.php"); $c = str_replace("public function testSharedGet()", "#[\\PHPUnit\\Framework\\Attributes\\Group('"'"'skip'"'"')]\n public function testSharedGet()", $c); file_put_contents("tests/Filesystem/FilesystemTest.php", $c);'
570570
php vendor/bin/phpunit --exclude-group skip || EXIT_CODE=$?
@@ -581,7 +581,7 @@ jobs:
581581
git clone "https://github.com/reactphp/$repository.git" "reactphp-$repository" --depth 1
582582
cd "reactphp-$repository"
583583
git rev-parse HEAD
584-
php /usr/bin/composer install --no-progress --ignore-platform-reqs
584+
php /usr/bin/composer install --no-progress --ignore-platform-req=php+
585585
vendor/bin/phpunit || EXIT_CODE=$?
586586
if [ $[EXIT_CODE:-0} -gt 128 ]; then
587587
X=1;
@@ -595,7 +595,7 @@ jobs:
595595
git clone https://github.com/revoltphp/event-loop.git --depth=1
596596
cd event-loop
597597
git rev-parse HEAD
598-
php /usr/bin/composer install --no-progress --ignore-platform-reqs
598+
php /usr/bin/composer install --no-progress --ignore-platform-req=php+
599599
vendor/bin/phpunit || EXIT_CODE=$?
600600
if [ ${EXIT_CODE:-0} -gt 128 ]; then
601601
exit 1
@@ -606,7 +606,7 @@ jobs:
606606
git clone https://github.com/symfony/symfony.git --depth=1
607607
cd symfony
608608
git rev-parse HEAD
609-
php /usr/bin/composer install --no-progress --ignore-platform-reqs
609+
php /usr/bin/composer install --no-progress --ignore-platform-req=php+
610610
php ./phpunit install
611611
# Test causes a heap-buffer-overflow but I cannot reproduce it locally...
612612
php -r '$c = file_get_contents("src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerCustomTest.php"); $c = str_replace("public function testSanitizeDeepNestedString()", "/** @group skip */\n public function testSanitizeDeepNestedString()", $c); file_put_contents("src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerCustomTest.php", $c);'
@@ -627,15 +627,15 @@ jobs:
627627
git clone https://github.com/sebastianbergmann/phpunit.git --branch=main --depth=1
628628
cd phpunit
629629
git rev-parse HEAD
630-
php /usr/bin/composer install --no-progress --ignore-platform-reqs
630+
php /usr/bin/composer install --no-progress --ignore-platform-req=php+
631631
php ./phpunit || EXIT_CODE=$?
632632
if [ ${EXIT_CODE:-0} -gt 128 ]; then
633633
exit 1
634634
fi
635635
- name: 'Symfony Preloading'
636636
if: ${{ !cancelled() && !inputs.skip_symfony }}
637637
run: |
638-
php /usr/bin/composer create-project symfony/symfony-demo symfony_demo --no-progress --ignore-platform-reqs
638+
php /usr/bin/composer create-project symfony/symfony-demo symfony_demo --no-progress --ignore-platform-req=php+
639639
cd symfony_demo
640640
git rev-parse HEAD
641641
sed -i 's/PHP_SAPI/"cli-server"/g' var/cache/dev/App_KernelDevDebugContainer.preload.php
@@ -646,7 +646,7 @@ jobs:
646646
git clone https://github.com/WordPress/wordpress-develop.git wordpress --depth=1
647647
cd wordpress
648648
git rev-parse HEAD
649-
php /usr/bin/composer install --no-progress --ignore-platform-reqs
649+
php /usr/bin/composer install --no-progress --ignore-platform-req=php+
650650
cp wp-tests-config-sample.php wp-tests-config.php
651651
sed -i 's/youremptytestdbnamehere/test/g' wp-tests-config.php
652652
sed -i 's/yourusernamehere/root/g' wp-tests-config.php

0 commit comments

Comments
 (0)