29
29
windows_version :
30
30
required : true
31
31
type : string
32
+ skip_laravel :
33
+ required : true
34
+ type : boolean
32
35
skip_symfony :
33
36
required : true
34
37
type : boolean
@@ -550,7 +553,7 @@ jobs:
550
553
git clone "https://github.com/amphp/$repository.git" "amphp-$repository" --depth 1
551
554
cd "amphp-$repository"
552
555
git rev-parse HEAD
553
- php /usr/bin/composer install --no-progress --ignore-platform-reqs
556
+ php /usr/bin/composer install --no-progress --ignore-platform-req=php+
554
557
vendor/bin/phpunit || EXIT_CODE=$?
555
558
if [ ${EXIT_CODE:-0} -gt 128 ]; then
556
559
X=1;
@@ -559,12 +562,12 @@ jobs:
559
562
done
560
563
exit $X
561
564
- name : Test Laravel
562
- if : ${{ !cancelled() }}
565
+ if : ${{ !cancelled() && !inputs.skip_laravel }}
563
566
run : |
564
567
git clone https://github.com/laravel/framework.git --depth=1
565
568
cd framework
566
569
git rev-parse HEAD
567
- php /usr/bin/composer install --no-progress --ignore-platform-reqs
570
+ php /usr/bin/composer install --no-progress --ignore-platform-req=php+
568
571
# Hack to disable a test that hangs
569
572
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);'
570
573
php vendor/bin/phpunit --exclude-group skip || EXIT_CODE=$?
@@ -581,7 +584,7 @@ jobs:
581
584
git clone "https://github.com/reactphp/$repository.git" "reactphp-$repository" --depth 1
582
585
cd "reactphp-$repository"
583
586
git rev-parse HEAD
584
- php /usr/bin/composer install --no-progress --ignore-platform-reqs
587
+ php /usr/bin/composer install --no-progress --ignore-platform-req=php+
585
588
vendor/bin/phpunit || EXIT_CODE=$?
586
589
if [ $[EXIT_CODE:-0} -gt 128 ]; then
587
590
X=1;
@@ -595,7 +598,7 @@ jobs:
595
598
git clone https://github.com/revoltphp/event-loop.git --depth=1
596
599
cd event-loop
597
600
git rev-parse HEAD
598
- php /usr/bin/composer install --no-progress --ignore-platform-reqs
601
+ php /usr/bin/composer install --no-progress --ignore-platform-req=php+
599
602
vendor/bin/phpunit || EXIT_CODE=$?
600
603
if [ ${EXIT_CODE:-0} -gt 128 ]; then
601
604
exit 1
@@ -606,7 +609,7 @@ jobs:
606
609
git clone https://github.com/symfony/symfony.git --depth=1
607
610
cd symfony
608
611
git rev-parse HEAD
609
- php /usr/bin/composer install --no-progress --ignore-platform-reqs
612
+ php /usr/bin/composer install --no-progress --ignore-platform-req=php+
610
613
php ./phpunit install
611
614
# Test causes a heap-buffer-overflow but I cannot reproduce it locally...
612
615
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 +630,15 @@ jobs:
627
630
git clone https://github.com/sebastianbergmann/phpunit.git --branch=main --depth=1
628
631
cd phpunit
629
632
git rev-parse HEAD
630
- php /usr/bin/composer install --no-progress --ignore-platform-reqs
633
+ php /usr/bin/composer install --no-progress --ignore-platform-req=php+
631
634
php ./phpunit || EXIT_CODE=$?
632
635
if [ ${EXIT_CODE:-0} -gt 128 ]; then
633
636
exit 1
634
637
fi
635
638
- name : ' Symfony Preloading'
636
639
if : ${{ !cancelled() && !inputs.skip_symfony }}
637
640
run : |
638
- php /usr/bin/composer create-project symfony/symfony-demo symfony_demo --no-progress --ignore-platform-reqs
641
+ php /usr/bin/composer create-project symfony/symfony-demo symfony_demo --no-progress --ignore-platform-req=php+
639
642
cd symfony_demo
640
643
git rev-parse HEAD
641
644
sed -i 's/PHP_SAPI/"cli-server"/g' var/cache/dev/App_KernelDevDebugContainer.preload.php
@@ -646,7 +649,7 @@ jobs:
646
649
git clone https://github.com/WordPress/wordpress-develop.git wordpress --depth=1
647
650
cd wordpress
648
651
git rev-parse HEAD
649
- php /usr/bin/composer install --no-progress --ignore-platform-reqs
652
+ php /usr/bin/composer install --no-progress --ignore-platform-req=php+
650
653
cp wp-tests-config-sample.php wp-tests-config.php
651
654
sed -i 's/youremptytestdbnamehere/test/g' wp-tests-config.php
652
655
sed -i 's/yourusernamehere/root/g' wp-tests-config.php
0 commit comments