Add PHP 8.2 and remove PHP 7.1 in github actions CI config

This commit is contained in:
Kijin Sung 2022-12-23 01:44:50 +09:00
parent 0f12a10b05
commit 6cb00a72b8

View file

@ -6,7 +6,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ]
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
name: PHP ${{ matrix.php }}
steps:
@ -30,14 +30,9 @@ 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 (PHP 7.2 and above)
if: matrix.php >= '7.2'
- name: Download codeception
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
run: php -S localhost:8000 &