File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 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'
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
You can’t perform that action at this time.
0 commit comments