@@ -360,6 +360,27 @@ 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
+
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
+
363
384
- name : Test Laravel
364
385
if : matrix.branch.ref != 'PHP-8.0'
365
386
run : |
@@ -371,9 +392,43 @@ jobs:
371
392
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
393
export ASAN_OPTIONS=exitcode=139
373
394
php vendor/bin/phpunit --exclude-group skip || EXIT_CODE=$?
374
- if [ $EXIT_CODE -gt 128 ]; then
395
+ if [ ${ EXIT_CODE:-0} -gt 128 ]; then
375
396
exit 1
376
397
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
+
377
432
- name : Test Symfony
378
433
if : matrix.branch.ref != 'PHP-8.0'
379
434
run : |
@@ -391,7 +446,7 @@ jobs:
391
446
X=0
392
447
for component in $(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n'); do
393
448
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
395
450
X=1;
396
451
fi
397
452
done
@@ -405,7 +460,7 @@ jobs:
405
460
export ASAN_OPTIONS=exitcode=139
406
461
php /usr/bin/composer install --no-progress --ignore-platform-reqs
407
462
php ./phpunit || EXIT_CODE=$?
408
- if [ $EXIT_CODE -gt 128 ]; then
463
+ if [ ${ EXIT_CODE:-0} -gt 128 ]; then
409
464
exit 1
410
465
fi
411
466
- name : ' Symfony Preloading'
0 commit comments