Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ jobs:
thresholdNew: 0.8
thresholdModified: 0.0
coverageFile: coverage.xml
diffCoverageFile: coverage-diff.json
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ inputs:
token:
required: true
description: 'github token'
diffCoverageFile:
required: false
description: 'local path to a diff coverage xml file like the output of diff-cover coverage.xml'
thresholdAll:
required: false
description: the coverage threshold for average over all files [0,1]
Expand Down
32 changes: 32 additions & 0 deletions coverage-diff.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"report_name": "XML",
"diff_name": "origin/develop...HEAD, staged and unstaged changes",
"src_stats": {
"src/coverage.ts": {
"percent_covered": 69,
"violation_lines": [],
"covered_lines": [
12,
367,
370,
371,
372,
373,
378,
379,
380,
381
],
"violations": [
[
368,
null
]
]
}
},
"total_num_lines": 45,
"total_num_violations": 34,
"total_percent_covered": 24,
"num_changed_lines": 95
}
Loading