Skip to content

Commit 50ff685

Browse files
committed
Add github action for llvm-cov coverage
The action reports the generated report to coveralls.
1 parent aa1fc35 commit 50ff685

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/coveralls.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on:
2+
- push
3+
- pull_request
4+
5+
name: Code coverage with llvm-cov
6+
7+
jobs:
8+
Coveralls:
9+
name: Code coverage - stable toolchain
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
steps:
14+
- name: Checkout Crate
15+
uses: actions/checkout@v4
16+
- name: Checkout Toolchain
17+
# https://github.com/dtolnay/rust-toolchain
18+
uses: dtolnay/rust-toolchain@stable
19+
- name: Install cargo-llvm-cov
20+
uses: taiki-e/install-action@cargo-llvm-cov
21+
- name: Generate code coverage for tests
22+
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
23+
- name: Upload report to coveralls
24+
uses: coverallsapp/github-action@v2

0 commit comments

Comments
 (0)