Skip to content

Commit abd563a

Browse files
authored
Add AMPHP, ReactPHP, Revolt PHP to community job (#10933)
1 parent ac99f73 commit abd563a

File tree

1 file changed

+53
-3
lines changed

1 file changed

+53
-3
lines changed

.github/workflows/nightly.yml

Lines changed: 53 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,25 @@ jobs:
360360
echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini
361361
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
362362
echo opcache.jit_buffer_size=1G >> /etc/php.d/opcache.ini
363+
- name: Test AMPHP
364+
if: matrix.branch.ref != 'PHP-8.0'
365+
run: |
366+
repositories="amp cache dns file http parallel parser pipeline process serialization socket sync websocket-client websocket-server"
367+
X=0
368+
for repository in $repositories; do
369+
printf "Testing amp/%s\n" "$repository"
370+
git clone "https://github.com/amphp/$repository.git" "amphp-$repository" --depth 1
371+
cd "amphp-$repository"
372+
git rev-parse HEAD
373+
php /usr/bin/composer install --no-progress --ignore-platform-reqs
374+
export ASAN_OPTIONS=exitcode=139
375+
vendor/bin/phpunit || EXIT_CODE=$?
376+
if [ ${EXIT_CODE:-0} -gt 128 ]; then
377+
X=1;
378+
fi
379+
cd ..
380+
done
381+
exit $X
363382
- name: Test Laravel
364383
if: matrix.branch.ref != 'PHP-8.0'
365384
run: |
@@ -371,7 +390,38 @@ jobs:
371390
php -r '$c = file_get_contents("tests/Filesystem/FilesystemTest.php"); $c = str_replace("*/\n public function testSharedGet()", "* @group skip\n */\n public function testSharedGet()", $c); file_put_contents("tests/Filesystem/FilesystemTest.php", $c);'
372391
export ASAN_OPTIONS=exitcode=139
373392
php vendor/bin/phpunit --exclude-group skip || EXIT_CODE=$?
374-
if [ $EXIT_CODE -gt 128 ]; then
393+
if [ ${EXIT_CODE:-0} -gt 128 ]; then
394+
exit 1
395+
fi
396+
- name: Test ReactPHP
397+
if: matrix.branch.ref != 'PHP-8.0'
398+
run: |
399+
repositories="async cache child-process datagram dns event-loop promise promise-stream promise-timer stream"
400+
X=0
401+
for repository in $repositories; do
402+
printf "Testing reactphp/%s\n" "$repository"
403+
git clone "https://github.com/reactphp/$repository.git" "reactphp-$repository" --depth 1
404+
cd "reactphp-$repository"
405+
git rev-parse HEAD
406+
php /usr/bin/composer install --no-progress --ignore-platform-reqs
407+
export ASAN_OPTIONS=exitcode=139
408+
vendor/bin/phpunit || EXIT_CODE=$?
409+
if [ $[EXIT_CODE:-0} -gt 128 ]; then
410+
X=1;
411+
fi
412+
cd ..
413+
done
414+
exit $X
415+
- name: Test Revolt PHP
416+
if: matrix.branch.ref != 'PHP-8.0'
417+
run: |
418+
git clone https://github.com/revoltphp/event-loop.git --depth=1
419+
cd event-loop
420+
git rev-parse HEAD
421+
php /usr/bin/composer install --no-progress --ignore-platform-reqs
422+
export ASAN_OPTIONS=exitcode=139
423+
vendor/bin/phpunit || EXIT_CODE=$?
424+
if [ ${EXIT_CODE:-0} -gt 128 ]; then
375425
exit 1
376426
fi
377427
- name: Test Symfony
@@ -391,7 +441,7 @@ jobs:
391441
X=0
392442
for component in $(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n'); do
393443
php ./phpunit $component --exclude-group tty,benchmark,intl-data,transient --exclude-group skip || EXIT_CODE=$?
394-
if [ $EXIT_CODE -gt 128 ]; then
444+
if [ ${EXIT_CODE:-0} -gt 128 ]; then
395445
X=1;
396446
fi
397447
done
@@ -405,7 +455,7 @@ jobs:
405455
export ASAN_OPTIONS=exitcode=139
406456
php /usr/bin/composer install --no-progress --ignore-platform-reqs
407457
php ./phpunit || EXIT_CODE=$?
408-
if [ $EXIT_CODE -gt 128 ]; then
458+
if [ ${EXIT_CODE:-0} -gt 128 ]; then
409459
exit 1
410460
fi
411461
- name: 'Symfony Preloading'

0 commit comments

Comments
 (0)