Skip to content

Commit ea6e5a7

Browse files
danieleadesjswrenn
authored andcommitted
add test coverage workflow
1 parent 1714cc0 commit ea6e5a7

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/coverage.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on:
2+
push:
3+
branches: [master]
4+
pull_request:
5+
6+
name: Code Coverage
7+
8+
jobs:
9+
coverage:
10+
name: coverage
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: checkout source
14+
uses: actions/checkout@v4
15+
16+
- name: Install nightly toolchain
17+
uses: dtolnay/rust-toolchain@nightly
18+
with:
19+
components: llvm-tools-preview
20+
21+
- name: Install cargo-llvm-cov
22+
uses: taiki-e/install-action@cargo-llvm-cov
23+
24+
- name: Run llvm-cov
25+
run: cargo llvm-cov --all-features --doctests --workspace --lcov --output-path lcov.info
26+
27+
- name: Upload coverage to Codecov
28+
uses: codecov/codecov-action@v3
29+
with:
30+
files: lcov.info

0 commit comments

Comments
 (0)