Skip to content

Commit

Permalink
ci: send JSON report to Codecov (#527)
Browse files Browse the repository at this point in the history
### Summary of Changes

If the `clover.xml` report is sent to Codecov lines with conditionals
are incorrectly marked as only partially covered (see [this
issue](istanbuljs/istanbuljs#695)). We are now
send the JSON report instead to get a more accurate picture of the code
coverage.
  • Loading branch information
lars-reimann authored Jul 4, 2023
1 parent 922af22 commit 6a65649
Show file tree
Hide file tree
Showing 5 changed files with 705 additions and 317 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: DSL/coverage
files: clover.xml
files: coverage-final.json

# Build and test Runner component
build-runner:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: DSL/coverage
files: clover.xml
files: coverage-final.json

# Build and test Runner component
build-runner:
Expand Down
Loading

0 comments on commit 6a65649

Please sign in to comment.