Skip to content

Commit 35c0183

Browse files
committed
Add PHPSeclib, Psalm and PHPStan to nightly tests
1 parent 34e6e40 commit 35c0183

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/nightly.yml

+32
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,28 @@ jobs:
389389
echo opcache.jit_hot_side_exit=1 >> /etc/php.d/opcache.ini
390390
echo memory_limit=-1 >> /etc/php.d/opcache.ini
391391
php -v
392+
- name: Test Psalm
393+
if: matrix.branch.ref != 'PHP-8.0'
394+
run: |
395+
git clone https://github.com/vimeo/psalm --branch=master
396+
cd psalm
397+
git checkout 7428e49b115a2a837aa29cf0fafd0ca902fe2457
398+
export ASAN_OPTIONS=exitcode=139
399+
# Needed to avoid overwriting JIT config
400+
export PSALM_ALLOW_XDEBUG=1
401+
php /usr/bin/composer install --no-progress --ignore-platform-reqs
402+
php ./psalm --no-cache || exit $?
403+
- name: Test PHPStan
404+
if: matrix.branch.ref != 'PHP-8.0'
405+
run: |
406+
git clone https://github.com/phpstan/phpstan-src
407+
cd phpstan-src
408+
git checkout d02cc99d4480a203a2dbe54a5ded2da016266b11
409+
sed -E 's/phpVersion(.*)max[^)]+/phpVersion\1max(89999/g' conf/parametersSchema.neon -i
410+
php /usr/bin/composer install --no-progress --ignore-platform-reqs
411+
export ASAN_OPTIONS=exitcode=139
412+
php bin/phpstan clear-result-cache
413+
php bin/phpstan || exit $?
392414
- name: Test AMPHP
393415
if: matrix.branch.ref != 'PHP-8.0'
394416
run: |
@@ -475,6 +497,16 @@ jobs:
475497
fi
476498
done
477499
exit $X
500+
- name: Test PHPSeclib
501+
if: always()
502+
run: |
503+
git clone https://github.com/phpseclib/phpseclib --branch=master
504+
cd phpseclib
505+
git checkout 259bd9f1e8af11726ed74acf527c2c046549061b
506+
export ASAN_OPTIONS=exitcode=139
507+
export PHPSECLIB_ALLOW_JIT=1
508+
php /usr/bin/composer install --no-progress --ignore-platform-reqs
509+
php vendor/bin/paratest --verbose --configuration=tests/phpunit.xml --runner=WrapperRunner || exit $?
478510
- name: Test PHPUnit
479511
if: always()
480512
run: |

0 commit comments

Comments
 (0)