Skip to content

Commit c525a71

Browse files
committed
Add PHPSeclib, Psalm and PHPStan to nightly tests
1 parent 0b7cd14 commit c525a71

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,28 @@ jobs:
400400
echo opcache.max_accelerated_files=100000 >> /etc/php.d/opcache.ini
401401
echo memory_limit=-1 >> /etc/php.d/opcache.ini
402402
php -v
403+
- name: Test Psalm
404+
if: matrix.branch.ref != 'PHP-8.0'
405+
run: |
406+
git clone https://github.com/vimeo/psalm --branch=master
407+
cd psalm
408+
git checkout 7428e49b115a2a837aa29cf0fafd0ca902fe2457
409+
export ASAN_OPTIONS=exitcode=139
410+
# Needed to avoid overwriting JIT config
411+
export PSALM_ALLOW_XDEBUG=1
412+
php /usr/bin/composer install --no-progress --ignore-platform-reqs
413+
php ./psalm --no-cache || exit $?
414+
- name: Test PHPStan
415+
if: matrix.branch.ref != 'PHP-8.0'
416+
run: |
417+
git clone https://github.com/phpstan/phpstan-src
418+
cd phpstan-src
419+
git checkout d02cc99d4480a203a2dbe54a5ded2da016266b11
420+
sed -E 's/phpVersion(.*)max[^)]+/phpVersion\1max(89999/g' conf/parametersSchema.neon -i
421+
php /usr/bin/composer install --no-progress --ignore-platform-reqs
422+
export ASAN_OPTIONS=exitcode=139
423+
php bin/phpstan clear-result-cache
424+
php bin/phpstan || exit $?
403425
- name: Test AMPHP
404426
if: matrix.branch.ref != 'PHP-8.0'
405427
run: |
@@ -486,6 +508,16 @@ jobs:
486508
fi
487509
done
488510
exit $X
511+
- name: Test PHPSeclib
512+
if: always()
513+
run: |
514+
git clone https://github.com/phpseclib/phpseclib --branch=master
515+
cd phpseclib
516+
git checkout 259bd9f1e8af11726ed74acf527c2c046549061b
517+
export ASAN_OPTIONS=exitcode=139
518+
export PHPSECLIB_ALLOW_JIT=1
519+
php /usr/bin/composer install --no-progress --ignore-platform-reqs
520+
php vendor/bin/paratest --verbose --configuration=tests/phpunit.xml --runner=WrapperRunner || exit $?
489521
- name: Test PHPUnit
490522
if: always()
491523
run: |

0 commit comments

Comments
 (0)