mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Add AMPHP, ReactPHP, Revolt PHP to community job (#10933)
This commit is contained in:
56
.github/workflows/nightly.yml
vendored
56
.github/workflows/nightly.yml
vendored
@@ -360,6 +360,25 @@ jobs:
|
||||
echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini
|
||||
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
|
||||
echo opcache.jit_buffer_size=1G >> /etc/php.d/opcache.ini
|
||||
- name: Test AMPHP
|
||||
if: matrix.branch.ref != 'PHP-8.0'
|
||||
run: |
|
||||
repositories="amp cache dns file http parallel parser pipeline process serialization socket sync websocket-client websocket-server"
|
||||
X=0
|
||||
for repository in $repositories; do
|
||||
printf "Testing amp/%s\n" "$repository"
|
||||
git clone "https://github.com/amphp/$repository.git" "amphp-$repository" --depth 1
|
||||
cd "amphp-$repository"
|
||||
git rev-parse HEAD
|
||||
php /usr/bin/composer install --no-progress --ignore-platform-reqs
|
||||
export ASAN_OPTIONS=exitcode=139
|
||||
vendor/bin/phpunit || EXIT_CODE=$?
|
||||
if [ ${EXIT_CODE:-0} -gt 128 ]; then
|
||||
X=1;
|
||||
fi
|
||||
cd ..
|
||||
done
|
||||
exit $X
|
||||
- name: Test Laravel
|
||||
if: matrix.branch.ref != 'PHP-8.0'
|
||||
run: |
|
||||
@@ -371,7 +390,38 @@ jobs:
|
||||
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);'
|
||||
export ASAN_OPTIONS=exitcode=139
|
||||
php vendor/bin/phpunit --exclude-group skip || EXIT_CODE=$?
|
||||
if [ $EXIT_CODE -gt 128 ]; then
|
||||
if [ ${EXIT_CODE:-0} -gt 128 ]; then
|
||||
exit 1
|
||||
fi
|
||||
- name: Test ReactPHP
|
||||
if: matrix.branch.ref != 'PHP-8.0'
|
||||
run: |
|
||||
repositories="async cache child-process datagram dns event-loop promise promise-stream promise-timer stream"
|
||||
X=0
|
||||
for repository in $repositories; do
|
||||
printf "Testing reactphp/%s\n" "$repository"
|
||||
git clone "https://github.com/reactphp/$repository.git" "reactphp-$repository" --depth 1
|
||||
cd "reactphp-$repository"
|
||||
git rev-parse HEAD
|
||||
php /usr/bin/composer install --no-progress --ignore-platform-reqs
|
||||
export ASAN_OPTIONS=exitcode=139
|
||||
vendor/bin/phpunit || EXIT_CODE=$?
|
||||
if [ $[EXIT_CODE:-0} -gt 128 ]; then
|
||||
X=1;
|
||||
fi
|
||||
cd ..
|
||||
done
|
||||
exit $X
|
||||
- name: Test Revolt PHP
|
||||
if: matrix.branch.ref != 'PHP-8.0'
|
||||
run: |
|
||||
git clone https://github.com/revoltphp/event-loop.git --depth=1
|
||||
cd event-loop
|
||||
git rev-parse HEAD
|
||||
php /usr/bin/composer install --no-progress --ignore-platform-reqs
|
||||
export ASAN_OPTIONS=exitcode=139
|
||||
vendor/bin/phpunit || EXIT_CODE=$?
|
||||
if [ ${EXIT_CODE:-0} -gt 128 ]; then
|
||||
exit 1
|
||||
fi
|
||||
- name: Test Symfony
|
||||
@@ -391,7 +441,7 @@ jobs:
|
||||
X=0
|
||||
for component in $(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n'); do
|
||||
php ./phpunit $component --exclude-group tty,benchmark,intl-data,transient --exclude-group skip || EXIT_CODE=$?
|
||||
if [ $EXIT_CODE -gt 128 ]; then
|
||||
if [ ${EXIT_CODE:-0} -gt 128 ]; then
|
||||
X=1;
|
||||
fi
|
||||
done
|
||||
@@ -405,7 +455,7 @@ jobs:
|
||||
export ASAN_OPTIONS=exitcode=139
|
||||
php /usr/bin/composer install --no-progress --ignore-platform-reqs
|
||||
php ./phpunit || EXIT_CODE=$?
|
||||
if [ $EXIT_CODE -gt 128 ]; then
|
||||
if [ ${EXIT_CODE:-0} -gt 128 ]; then
|
||||
exit 1
|
||||
fi
|
||||
- name: 'Symfony Preloading'
|
||||
|
||||
Reference in New Issue
Block a user