Skip to content

Commit

Permalink
Fix code coverage on PHP 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
colinodell committed Sep 19, 2020
1 parent 900ac8c commit 0c595c0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.1', '7.2', '7.3', '7.4']
coverage: [true]
php: ['7.2', '7.3', '7.4']
coverage: [pcov]
composer-flags: ['']
include:
- php: '7.1'
coverage: xdebug
composer-flags: ''
- php: '8.0'
coverage: false
composer-flags: '--ignore-platform-req=php'
Expand All @@ -55,10 +58,10 @@ jobs:
- run: composer update --no-progress ${{ matrix.composer-flags }}

- run: vendor/bin/phpunit --no-coverage
if: ${{ !matrix.coverage }}
if: ${{ matrix.coverage == 'none' }}

- run: vendor/bin/phpunit --coverage-text
if: ${{ matrix.coverage }}
if: ${{ matrix.coverage != 'none' }}

phpstan:
name: PHPStan
Expand Down

0 comments on commit 0c595c0

Please sign in to comment.