Skip to content

Commit a1ad04a

Browse files
committed
Add AMPHP, ReactPHP, Revolt PHP in community job
1 parent d22d0e2 commit a1ad04a

File tree

1 file changed

+58
-3
lines changed

1 file changed

+58
-3
lines changed

.github/workflows/nightly.yml

Lines changed: 58 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,27 @@ 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+
364+
- name: Test AMPHP
365+
if: matrix.branch.ref != 'PHP-8.0'
366+
run: |
367+
repositories="amp byte-stream cache dns file http parallel parser pipeline process serialization socket sync websocket-client websocket-server"
368+
X=0
369+
for repository in $repositories; do
370+
printf "Testing amp/%s\n" "$repository"
371+
git clone "https://github.com/amphp/$repository.git" "amphp-$repository" --depth 1
372+
cd "amphp-$repository"
373+
git rev-parse HEAD
374+
php /usr/bin/composer install --no-progress --ignore-platform-reqs
375+
export ASAN_OPTIONS=exitcode=139
376+
vendor/bin/phpunit || EXIT_CODE=$?
377+
if [ ${EXIT_CODE:-0} -gt 128 ]; then
378+
X=1;
379+
fi
380+
cd ..
381+
done
382+
exit $X
383+
363384
- name: Test Laravel
364385
if: matrix.branch.ref != 'PHP-8.0'
365386
run: |
@@ -371,9 +392,43 @@ jobs:
371392
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);'
372393
export ASAN_OPTIONS=exitcode=139
373394
php vendor/bin/phpunit --exclude-group skip || EXIT_CODE=$?
374-
if [ $EXIT_CODE -gt 128 ]; then
395+
if [ ${EXIT_CODE:-0} -gt 128 ]; then
375396
exit 1
376397
fi
398+
399+
- name: Test ReactPHP
400+
if: matrix.branch.ref != 'PHP-8.0'
401+
run: |
402+
repositories="async cache child-process datagram dns event-loop promise promise-stream promise-timer stream"
403+
X=0
404+
for repository in $repositories; do
405+
printf "Testing reactphp/%s\n" "$repository"
406+
git clone "https://github.com/reactphp/$repository.git" "reactphp-$repository" --depth 1
407+
cd "reactphp-$repository"
408+
git rev-parse HEAD
409+
php /usr/bin/composer install --no-progress --ignore-platform-reqs
410+
export ASAN_OPTIONS=exitcode=139
411+
vendor/bin/phpunit || EXIT_CODE=$?
412+
if [ $[EXIT_CODE:-0} -gt 128 ]; then
413+
X=1;
414+
fi
415+
cd ..
416+
done
417+
exit $X
418+
419+
- name: Test Revolt PHP
420+
if: matrix.branch.ref != 'PHP-8.0'
421+
run: |
422+
git clone https://github.com/revoltphp/event-loop.git --depth=1
423+
cd event-loop
424+
git rev-parse HEAD
425+
php /usr/bin/composer install --no-progress --ignore-platform-reqs
426+
export ASAN_OPTIONS=exitcode=139
427+
vendor/bin/phpunit || EXIT_CODE=$?
428+
if [ ${EXIT_CODE:-0} -gt 128 ]; then
429+
exit 1
430+
fi
431+
377432
- name: Test Symfony
378433
if: matrix.branch.ref != 'PHP-8.0'
379434
run: |
@@ -391,7 +446,7 @@ jobs:
391446
X=0
392447
for component in $(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n'); do
393448
php ./phpunit $component --exclude-group tty,benchmark,intl-data,transient --exclude-group skip || EXIT_CODE=$?
394-
if [ $EXIT_CODE -gt 128 ]; then
449+
if [ ${EXIT_CODE:-0} -gt 128 ]; then
395450
X=1;
396451
fi
397452
done
@@ -405,7 +460,7 @@ jobs:
405460
export ASAN_OPTIONS=exitcode=139
406461
php /usr/bin/composer install --no-progress --ignore-platform-reqs
407462
php ./phpunit || EXIT_CODE=$?
408-
if [ $EXIT_CODE -gt 128 ]; then
463+
if [ ${EXIT_CODE:-0} -gt 128 ]; then
409464
exit 1
410465
fi
411466
- name: 'Symfony Preloading'

0 commit comments

Comments
 (0)