@@ -335,6 +335,27 @@ jobs:
335
335
echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini
336
336
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
337
337
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
+
338
359
- name : Test Laravel
339
360
if : matrix.branch.ref != 'PHP-8.0'
340
361
run : |
@@ -346,9 +367,43 @@ jobs:
346
367
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);'
347
368
export ASAN_OPTIONS=exitcode=139
348
369
php vendor/bin/phpunit --exclude-group skip || EXIT_CODE=$?
349
- if [ $EXIT_CODE -gt 128 ]; then
370
+ if [ ${ EXIT_CODE:-0} -gt 128 ]; then
350
371
exit 1
351
372
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
+
352
407
- name : Test Symfony
353
408
if : matrix.branch.ref != 'PHP-8.0'
354
409
run : |
@@ -366,7 +421,7 @@ jobs:
366
421
X=0
367
422
for component in $(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n'); do
368
423
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
370
425
X=1;
371
426
fi
372
427
done
@@ -380,7 +435,7 @@ jobs:
380
435
export ASAN_OPTIONS=exitcode=139
381
436
php /usr/bin/composer install --no-progress --ignore-platform-reqs
382
437
php ./phpunit || EXIT_CODE=$?
383
- if [ $EXIT_CODE -gt 128 ]; then
438
+ if [ ${ EXIT_CODE:-0} -gt 128 ]; then
384
439
exit 1
385
440
fi
386
441
- name : ' Symfony Preloading'
0 commit comments