@@ -360,6 +360,25 @@ jobs:
360
360
echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini
361
361
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
362
362
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
363
382
- name : Test Laravel
364
383
if : matrix.branch.ref != 'PHP-8.0'
365
384
run : |
@@ -371,7 +390,38 @@ jobs:
371
390
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);'
372
391
export ASAN_OPTIONS=exitcode=139
373
392
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
375
425
exit 1
376
426
fi
377
427
- name : Test Symfony
@@ -391,7 +441,7 @@ jobs:
391
441
X=0
392
442
for component in $(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n'); do
393
443
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
395
445
X=1;
396
446
fi
397
447
done
@@ -405,7 +455,7 @@ jobs:
405
455
export ASAN_OPTIONS=exitcode=139
406
456
php /usr/bin/composer install --no-progress --ignore-platform-reqs
407
457
php ./phpunit || EXIT_CODE=$?
408
- if [ $EXIT_CODE -gt 128 ]; then
458
+ if [ ${ EXIT_CODE:-0} -gt 128 ]; then
409
459
exit 1
410
460
fi
411
461
- name : ' Symfony Preloading'
0 commit comments