Skip to content

Commit 19ee209

Browse files
committed
fix: update coverage report workflow to filter LCOV and use filtered coverage file
1 parent b24e48a commit 19ee209

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/coverage-report.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,26 @@ jobs:
2323

2424
- run: npm ci
2525
- run: npm run coverage:sol
26+
2627
- uses: hrishikesh-kadam/setup-lcov@v1
2728

29+
- name: Filter LCOV
30+
run: |
31+
lcov --remove lcov.info \
32+
'test/*' \
33+
'script/*' \
34+
'src/proto/**' \
35+
'third_party/**' \
36+
'src/**/I*.sol' \
37+
'src/core/PacketHandler.sol' \
38+
'src/core/ContractRegistry.sol' \
39+
-o lcov.filtered.info
40+
lcov --summary lcov.filtered.info
41+
2842
- name: Report code coverage
2943
uses: zgosalvez/github-actions-report-lcov@v5
3044
with:
31-
coverage-files: lcov.info
45+
coverage-files: lcov.filtered.info
3246
minimum-coverage: 0 # TODO: Once new tests are added, increase minimum-coverage from 0 to a realistic gate (e.g., 5–10%), and keep bumping it as coverage improves.
3347
artifact-name: code-coverage-report
3448
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)