remove PHP 7.4 from CI

This commit is contained in:
Pig Fang 2021-12-12 18:15:21 +08:00
parent efa20f4940
commit b2c5cca240
No known key found for this signature in database
GPG Key ID: A8198F548DADA9E2

View File

@ -45,20 +45,20 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0']
php: ['8.0']
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP only
uses: shivammathur/setup-php@v2
if: matrix.php != '7.4'
if: matrix.php != '8.0'
with:
php-version: ${{ matrix.php }}
coverage: none
extensions: mbstring, dom, fileinfo, sqlite, gd, zip
- name: Setup PHP with Xdebug
uses: shivammathur/setup-php@v2
if: matrix.php == '7.4'
if: matrix.php == '8.0'
with:
php-version: ${{ matrix.php }}
coverage: xdebug
@ -72,14 +72,14 @@ jobs:
- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: Run tests only
if: matrix.php != '7.4'
if: matrix.php != '8.0'
run: ./vendor/bin/phpunit
- name: Run tests with coverage report
if: matrix.php == '7.4'
if: matrix.php == '8.0'
run: ./vendor/bin/phpunit --coverage-clover=coverage.xml
- name: Upload coverage report
uses: codecov/codecov-action@v1
if: matrix.php == '7.4' && success()
if: matrix.php == '8.0' && success()
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: github-actions