-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.2 KB
/
coverage.yml
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
36
37
38
39
40
41
42
43
44
45
46
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
on:
push:
tags-ignore:
- "**"
branches:
- "**"
pull_request:
name: Generate Coverage report
jobs:
coverage:
runs-on: ubuntu-latest
container: mwatelescope/birli:latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install stable Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy, llvm-tools
- name: Install cargo-llvm-cov
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-llvm-cov
- name: Generate test lcov coverage into coverage/ dir
run: |
mkdir -p coverage
cargo llvm-cov --all --locked --lcov --output-path coverage/coverage.lcov
# this uses the result of the previous run to generate a text summary
cargo llvm-cov --no-run --locked
- name: Upload reports to codecov.io
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}