Skip to content

Commit f19647f

Browse files
Condense coverage report checkout and running of unit tests into one step
1 parent 41ee53e commit f19647f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,9 @@ jobs:
5555
composer install --no-interaction --prefer-dist --no-progress
5656
5757
- name: Run unit tests
58-
run: XDEBUG_MODE=coverage php vendor/bin/phpunit --testsuite unit
59-
60-
- name: Checkout coverage report
61-
run: php vendor/bin/coverage-check coverage/clover.xml ${{ env.MINIMUM_COVERAGE_PERCENTAGE }}
58+
run: |
59+
XDEBUG_MODE=coverage php vendor/bin/phpunit --testsuite unit
60+
php vendor/bin/coverage-check coverage/clover.xml ${{ env.MINIMUM_COVERAGE_PERCENTAGE }}
6261
6362
- name: Run mutation tests
6463
run: XDEBUG_MODE=coverage php vendor/bin/infection --show-mutations --min-msi=${{ env.MINIMUM_MSI_PERCENTAGE }} --threads=4

0 commit comments

Comments
 (0)