Update unit tests for latest codeception

This commit is contained in:
Kijin Sung 2021-01-28 21:53:44 +09:00
parent 0db02281c9
commit f46b41f437
12 changed files with 331 additions and 295 deletions

View file

@ -28,16 +28,18 @@ jobs:
- name: PHP Lint
run: if find . -name "*.php" ! -path "./vendor/*" -print0 | xargs -0 -n 1 -P 8 php -l | grep -v "No syntax errors detected"; then exit 1; fi
- name: Download codeception
if: matrix.php != '8.0'
run: wget https://codeception.com/releases/2.3.9/codecept.phar
- name: Download codeception (PHP 7.2 and above)
if: matrix.php >= '7.2'
run: wget https://codeception.com/codecept.phar
- name: Download codeception (PHP 7.1 and below)
if: matrix.php <= '7.1'
run: wget https://codeception.com/php56/codecept.phar
- name: Run PHP development server
if: matrix.php != '8.0'
run: php -S localhost:8000 &
- name: Build and run codeception
if: matrix.php != '8.0'
run: |
php codecept.phar build
php codecept.phar run --debug --fail-fast --env travis