-
-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (42 loc) · 1.1 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
name: Coverage
#on:
# push:
# branches:
# - main
# pull_request:
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
jobs:
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
default: true
- name: Install udev
run: sudo apt-get install libudev-dev
- name: Restore cache
uses: Swatinem/rust-cache@v1
- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
args: '--run-types Doctests,Tests'
timeout: 120
- name: Upload to codecov.io
uses: codecov/codecov-action@239febf655bba88b16ff5dea1d3135ea8663a1f9
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Archive code coverage results
uses: actions/upload-artifact@v2
with:
name: code-coverage-report
path: cobertura.xml
retention-days: 30