Skip to content

Commit c4f03f3

Browse files
authored
Fix coverage configuration (#198)
Signed-off-by: Max Lambrecht <[email protected]>
1 parent d399845 commit c4f03f3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/coverage.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
- name: Run Tests (spiffe-rustls aws-lc-rs)
4646
run: cargo test -p spiffe-rustls --no-default-features --features aws-lc-rs
4747

48+
# Coverage is restricted to hand-written library code.
49+
# Generated protobuf code, examples, and tooling are intentionally excluded.
4850
- name: Generate Coveralls JSON Report
4951
run: |
5052
grcov . \
@@ -55,10 +57,13 @@ jobs:
5557
-s . \
5658
--ignore-not-existing \
5759
--ignore "$HOME/.cargo/**" \
58-
--ignore "*/proto/*" \
59-
--ignore "*/spire-api-sdk/*" \
60+
--ignore "*/proto/**" \
61+
--ignore "*/pb/**" \
62+
--ignore "*/spire-api-sdk/**" \
6063
--ignore "*/build.rs" \
61-
--keep-only '*/src/*' > coveralls.json
64+
--ignore "*/spiffe-rustls-grpc-examples/src/**" \
65+
--ignore "*/xtask/src/**" \
66+
--keep-only '*/src/**' > coveralls.json
6267
6368
- name: Upload coverage to Coveralls
6469
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7

0 commit comments

Comments
 (0)