Skip to content

Commit 5f3a673

Browse files
committed
Fix coverage.xml path to use absolute path
The coverage.xml file wasn't being generated in the expected location, causing the coverage extraction to fail and report 0%. Using github.workspace ensures the file is written to the correct location.
1 parent ef47fa4 commit 5f3a673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/code-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565

6666
- name: Generate code coverage report for current branch
6767
run: |
68-
composer test -- --coverage-clover=coverage.xml --coverage-text | tee coverage-output.txt
68+
composer test -- --coverage-clover=${{ github.workspace }}/coverage.xml --coverage-text | tee coverage-output.txt
6969
continue-on-error: false
7070

7171
- name: Upload coverage to Codecov

0 commit comments

Comments
 (0)