-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1016 Bytes
/
coverage.yml
File metadata and controls
36 lines (32 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: test coverage
env:
CARGO_TERM_COLOR: always
on: [push, pull_request]
jobs:
test:
name: Test Coverage
runs-on: ubuntu-latest
steps:
- run: sudo apt-get install libjack-dev
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions-rs/toolchain@v1
with:
profile: minimal
components: llvm-tools-preview
toolchain: nightly-2020-11-24
override: true
- uses: actions-rs/install@v0.1
with:
crate: grcov
version: 0.6.1
use-tool-cache: true
- run: cargo build
env:
RUSTFLAGS: "-Zinstrument-coverage"
- run: cargo test
env:
RUSTFLAGS: "-Zinstrument-coverage"
- run: grcov . --binary-path ./target/debug -s . -t lcov --branch --excl-start GRCOV_EXCL_START --excl-stop GRCOV_EXCL_STOP --excl-line GRCOV_EXCL_LINE --ignore-not-existing -o lcov.info
- run: bash <(curl -s https://codecov.io/bash) -f lcov.info