Skip to content

Commit 09ea2f0

Browse files
committed
Only compute coverage of the library
1 parent e66304c commit 09ea2f0

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/coverage.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ name: Coverage
33
on:
44
push:
55
branches: [main]
6+
pull_request: # TODO: Remove
7+
branches: [main]
68

79
jobs:
810
tarpaulin:
911
runs-on: ubuntu-latest
1012
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions-rs/toolchain@v1
13-
with:
14-
toolchain: nightly
15-
override: true
13+
- uses: actions/checkout@v4
14+
- run: rustup default nightly
1615
- run: cargo install cargo-tarpaulin
17-
- run: >
18-
cd lib && cargo tarpaulin --coveralls=${{ secrets.COVERALLS_TOKEN }}
19-
--exclude-files=fuzz --exclude-files=tests --exclude-files=macro
16+
- run: cargo tarpaulin --coveralls=${{ secrets.COVERALLS_TOKEN }} --include-files=src/lib.rs
17+
working-directory: lib

0 commit comments

Comments
 (0)