Skip to content

Commit 1529de5

Browse files
committed
Add AMPHP, ReactPHP, Revolt PHP in community job
1 parent e49777f commit 1529de5

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
@@ -335,6 +335,27 @@ jobs:
335335
echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini
336336
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
337337
echo opcache.jit_buffer_size=1G >> /etc/php.d/opcache.ini
338+
339+
- name: Test AMPHP
340+
if: matrix.branch.ref != 'PHP-8.0'
341+
run: |
342+
repositories="amp byte-stream cache dns file http parallel parser pipeline process serialization socket sync websocket-client websocket-server"
343+
X=0
344+
for repository in $repositories; do
345+
printf "Testing amp/%s\n" "$repository"
346+
git clone "https://github.com/amphp/$repository.git" "amphp-$repository" --depth 1
347+
cd "amphp-$repository"
348+
git rev-parse HEAD
349+
php /usr/bin/composer install --no-progress --ignore-platform-reqs
350+
export ASAN_OPTIONS=exitcode=139
351+
vendor/bin/phpunit || EXIT_CODE=$?
352+
if [ ${EXIT_CODE:-0} -gt 128 ]; then
353+
X=1;
354+
fi
355+
cd ..
356+
done
357+
exit $X
358+
338359
- name: Test Laravel
339360
if: matrix.branch.ref != 'PHP-8.0'
340361
run: |
@@ -346,9 +367,43 @@ jobs:
346367
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);'
347368
export ASAN_OPTIONS=exitcode=139
348369
php vendor/bin/phpunit --exclude-group skip || EXIT_CODE=$?
349-
if [ $EXIT_CODE -gt 128 ]; then
370+
if [ ${EXIT_CODE:-0} -gt 128 ]; then
350371
exit 1
351372
fi
373+
374+
- name: Test ReactPHP
375+
if: matrix.branch.ref != 'PHP-8.0'
376+
run: |
377+
repositories="async cache child-process datagram dns event-loop promise promise-stream promise-timer stream"
378+
X=0
379+
for repository in $repositories; do
380+
printf "Testing reactphp/%s\n" "$repository"
381+
git clone "https://github.com/reactphp/$repository.git" "reactphp-$repository" --depth 1
382+
cd "reactphp-$repository"
383+
git rev-parse HEAD
384+
php /usr/bin/composer install --no-progress --ignore-platform-reqs
385+
export ASAN_OPTIONS=exitcode=139
386+
vendor/bin/phpunit || EXIT_CODE=$?
387+
if [ $[EXIT_CODE:-0} -gt 128 ]; then
388+
X=1;
389+
fi
390+
cd ..
391+
done
392+
exit $X
393+
394+
- name: Test Revolt PHP
395+
if: matrix.branch.ref != 'PHP-8.0'
396+
run: |
397+
git clone https://github.com/revoltphp/event-loop.git --depth=1
398+
cd event-loop
399+
git rev-parse HEAD
400+
php /usr/bin/composer install --no-progress --ignore-platform-reqs
401+
export ASAN_OPTIONS=exitcode=139
402+
vendor/bin/phpunit || EXIT_CODE=$?
403+
if [ ${EXIT_CODE:-0} -gt 128 ]; then
404+
exit 1
405+
fi
406+
352407
- name: Test Symfony
353408
if: matrix.branch.ref != 'PHP-8.0'
354409
run: |
@@ -366,7 +421,7 @@ jobs:
366421
X=0
367422
for component in $(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n'); do
368423
php ./phpunit $component --exclude-group tty,benchmark,intl-data,transient --exclude-group skip || EXIT_CODE=$?
369-
if [ $EXIT_CODE -gt 128 ]; then
424+
if [ ${EXIT_CODE:-0} -gt 128 ]; then
370425
X=1;
371426
fi
372427
done
@@ -380,7 +435,7 @@ jobs:
380435
export ASAN_OPTIONS=exitcode=139
381436
php /usr/bin/composer install --no-progress --ignore-platform-reqs
382437
php ./phpunit || EXIT_CODE=$?
383-
if [ $EXIT_CODE -gt 128 ]; then
438+
if [ ${EXIT_CODE:-0} -gt 128 ]; then
384439
exit 1
385440
fi
386441
- name: 'Symfony Preloading'

0 commit comments

Comments
 (0)