Skip to content

Commit 3274f22

Browse files
committed
add coverage to composer scripts and tests workflow
1 parent fc6a664 commit 3274f22

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
with:
2323
php-version: ${{ matrix.php }}
2424
tools: composer:v2
25-
coverage: none
25+
coverage: xdebug
2626

2727
- name: Install PHP dependencies
2828
run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi

composer.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@
5555
"test:refactor": "rector --dry-run",
5656
"test:lint": "pint --test",
5757
"test:types": "phpstan analyse --ansi",
58-
"test:unit": "pest --colors=always",
58+
"test:unit": [
59+
"@putenv XDEBUG_MODE=coverage",
60+
"pest --coverage --colors=always -v"
61+
],
5962
"test": [
6063
"@test:refactor",
6164
"@test:lint",

0 commit comments

Comments
 (0)