Skip to content

Commit f698e08

Browse files
authored
Do not use xDebug (#774)
1 parent ff9cc1f commit f698e08

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- os: ubuntu-latest
4444
php-version: '8.1'
4545
with-package: friendsofphp/php-cs-fixer:*
46-
coverage-driver: pcov
46+
calculate-coverage: true
4747
description: 'with calculating code coverage'
4848
- os: ubuntu-latest
4949
php-version: '8.1'
@@ -74,7 +74,7 @@ jobs:
7474
with:
7575
php-version: ${{ matrix.php-version }}
7676
ini-values: pcov.directory=$GITHUB_WORKSPACE, zend.assertions=1
77-
coverage: ${{ matrix.coverage-driver }}
77+
coverage: ${{ (matrix.calculate-coverage && 'pcov') || 'none' }}
7878
- id: composer-cache
7979
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
8080
- uses: actions/cache@v3
@@ -84,11 +84,11 @@ jobs:
8484
- run: composer require ${{ matrix.with-package }} --no-update
8585
- run: composer update --no-progress ${{ matrix.composer-flags }}
8686
- run: composer test -- --coverage-clover=./build/logs/clover.xml
87-
- if: matrix.coverage-driver == 'pcov'
87+
- if: ${{ matrix.calculate-coverage }}
8888
env:
8989
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9090
run: composer require --dev php-coveralls/php-coveralls --quiet --with-all-dependencies && ./vendor/bin/php-coveralls --verbose
91-
- if: matrix.coverage-driver == 'pcov'
91+
- if: ${{ matrix.calculate-coverage }}
9292
env:
9393
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
9494
run: composer infection

0 commit comments

Comments
 (0)