Skip to content

Commit 9142eda

Browse files
committed
Compare against previous test coverage
1 parent a770438 commit 9142eda

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/documentation.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,16 @@ jobs:
128128
llvm-cov-18 export -format=lcov -skip-functions -instr-profile=coverage-input/coverage.profdata ${objects[@]} -sources src > coverage-output/coverage.lcov
129129
llvm-cov-18 export -format=text -summary-only -instr-profile=coverage-input/coverage.profdata ${objects[@]} -sources src | \
130130
printf '{ "coverage": "%.2f%%" }' $(jq '.data[0].totals.functions.percent') > coverage-output/coverage.json
131+
- name: Download Previous Coverage Report
132+
run: wget https://daxpedda.github.io/wasm-worker/coverage/coverage.lcov
131133
- name: Report Coverage in Job Summary
132134
# See <https://github.com/romeovs/lcov-reporter-action/pull/68>
133135
uses: 06393993/lcov-reporter-action@45b31bf53fa5ac82d0f49039198080afdb535288
134136
with:
135137
lcov-file: coverage-output/coverage.lcov
138+
lcov-base: coverage.lcov
139+
filter-changed-files: true
140+
title: Test Coverage
136141
post-to: job-summary
137142
- name: Upload Test Coverage Artifact
138143
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)