-
-
Notifications
You must be signed in to change notification settings - Fork 120
57 lines (47 loc) · 1.46 KB
/
coverage.yaml
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
47
48
49
50
51
52
53
54
55
56
57
on:
pull_request:
paths-ignore:
- "docs/**"
- "helm/**"
- "assets/**"
- "**.md"
push:
branches:
- main
name: Lint, Test and Coverage Report
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
with:
shared-key: ${{ runner.os }}-cargo
- uses: taiki-e/install-action@v2
with:
tool: cargo-hack, cargo-llvm-cov, nextest
- name: Check with clippy
run: cargo hack clippy --verbose --each-feature --no-dev-deps -- -D warnings
- name: Check docs
run: cargo hack doc --verbose --no-deps --each-feature --no-dev-deps
- name: Doctests
run: cargo hack --each-feature test --doc
- name: Tests
run: cargo hack --each-feature llvm-cov --no-report nextest
- name: Genrate coverage report
run: cargo llvm-cov report --lcov --output-path coverage.lcov
- name: Upload Coverage Report
uses: coverallsapp/github-action@v2.2.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: ./coverage.lcov
parallel: true
flag-name: run-${{ matrix.os }}-cargo
- name: Finish Coverage Report
uses: coverallsapp/github-action@v2.2.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true