Skip to content

Commit f5a91a3

Browse files
committed
ci: generate json-report and json-summary during coverage run
1 parent c60d8ca commit f5a91a3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/coverage.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ name: coverage
88
env:
99
COBERTURA_REPORT: cobertura.xml
1010
COVERALLS_REPORT: coveralls.json
11+
JSON_REPORT: report.json
12+
JSON_SUMMARY: summary.json
1113
HTML_REPORT_DIR: html/
1214
COVERAGE_ARTIFACT_NAME: coverage-report
1315

@@ -81,7 +83,9 @@ jobs:
8183
--txt \
8284
--cobertura ${{env.COBERTURA_REPORT}} --cobertura-pretty \
8385
--html-nested ${{env.HTML_REPORT_DIR}} --html-title "mimic++ Coverage Report" \
84-
--coveralls ${{env.COVERALLS_REPORT}} --coveralls-pretty
86+
--coveralls ${{env.COVERALLS_REPORT}} --coveralls-pretty \
87+
--json-summary ${{env.JSON_SUMMARY}} --json-summary-pretty \
88+
--json ${{env.JSON_REPORT}} -- json-pretty
8589
8690
- name: Upload gcov coverage report artifacts
8791
uses: actions/upload-artifact@v4
@@ -97,6 +101,8 @@ jobs:
97101
path: |
98102
${{env.COBERTURA_REPORT}}
99103
${{env.COVERALLS_REPORT}}
104+
${{env.JSON_REPORT}}
105+
${{env.JSON_SUMMARY}}
100106
${{env.HTML_REPORT_DIR}}
101107
if-no-files-found: error
102108

0 commit comments

Comments
 (0)