Skip to content

Commit 9c81fa0

Browse files
committed
Add coverage to CI
1 parent e55f5ec commit 9c81fa0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/rust.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@ jobs:
1111
run: cargo build --all-targets --verbose
1212
- name: Run tests
1313
run: cargo test --verbose
14+
coverage:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v1
18+
- name: Install stable toolchain
19+
uses: actions-rs/toolchain@v1
20+
with:
21+
toolchain: stable
22+
- name: Run cargo-tarpaulin
23+
uses: actions-rs/[email protected]
24+
- name: Upload to codecov.io
25+
uses: codecov/codecov-action@v1
26+
with:
27+
token: ${{ secrets.CODECOV_TOKEN }}
1428
release:
1529
runs-on: ubuntu-latest
1630
needs: build

0 commit comments

Comments
 (0)