Skip to content

Commit a59aa14

Browse files
#242: Trying to get code coverage to work
1 parent 53bc1cf commit a59aa14

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ jobs:
2929
- name: 'Composer Install'
3030
uses: 'ramsey/composer-install@v3'
3131
- name: 'PHPUnit'
32-
run: 'XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml'
32+
run: 'XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --coverage-clover $RUNNER_TEMP/coverage.xml'
3333
- name: 'Code Climate'
3434
uses: 'paambaati/codeclimate-action@v6'
35+
with:
36+
coverageLocations: "$RUNNER_TEMP/phpunit-coverage.xml"
3537
env:
3638
CC_TEST_REPORTER_ID: "${{ secrets.CODECLIMATE_REPORTER_ID }}"

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/.idea/
22
/.phpunit.cache/
3-
/build/
43
/composer.lock
54
/vendor/

0 commit comments

Comments
 (0)