Skip to content

Commit 28e7155

Browse files
committed
Fix code coverage on PHP 7.1
1 parent 900ac8c commit 28e7155

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,13 @@ jobs:
2828
runs-on: ubuntu-latest
2929
strategy:
3030
matrix:
31-
php: ['7.1', '7.2', '7.3', '7.4']
32-
coverage: [true]
31+
php: ['7.2', '7.3', '7.4']
32+
coverage: [pcov]
3333
composer-flags: ['']
3434
include:
35+
- php: '7.1'
36+
coverage: xdebug
37+
composer-flags: ''
3538
- php: '8.0'
3639
coverage: false
3740
composer-flags: '--ignore-platform-req=php'
@@ -43,7 +46,7 @@ jobs:
4346
with:
4447
php-version: ${{ matrix.php }}
4548
extensions: curl
46-
coverage: pcov
49+
coverage: ${{ matrix.coverage }}
4750
tools: composer:v2
4851

4952
- run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
@@ -55,10 +58,10 @@ jobs:
5558
- run: composer update --no-progress ${{ matrix.composer-flags }}
5659

5760
- run: vendor/bin/phpunit --no-coverage
58-
if: ${{ !matrix.coverage }}
61+
if: ${{ matrix.coverage == 'none' }}
5962

6063
- run: vendor/bin/phpunit --coverage-text
61-
if: ${{ matrix.coverage }}
64+
if: ${{ matrix.coverage != 'none' }}
6265

6366
phpstan:
6467
name: PHPStan

0 commit comments

Comments
 (0)