Skip to content

Commit ced5a91

Browse files
committed
Show CC where coverage file is
1 parent 5f44ad4 commit ced5a91

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# Steam API key for testing
2-
apiKey=
2+
apiKey=
3+
XDEBUG_MODE=coverage

.github/workflows/php.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,8 @@ jobs:
5151
env:
5252
apiKey: ${{ secrets.STEAM_API_KEY }}
5353
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
54+
XDEBUG_MODE: coverage
5455
with:
55-
coverageCommand: composer run-script coverage
56+
coverageCommand: composer run-script coverage
57+
coverageLocations: ${{github.workspace}}/coverage.clover:clover
58+
debug: true

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@
3939
"minimum-stability": "stable",
4040
"scripts": {
4141
"test": "vendor/bin/phpunit",
42-
"coverage": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover=coverage.clover"
42+
"coverage": "vendor/bin/phpunit --coverage-clover=coverage.clover"
4343
}
4444
}

0 commit comments

Comments
 (0)