-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (47 loc) · 1.28 KB
/
rust.yml
File metadata and controls
58 lines (47 loc) · 1.28 KB
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
58
name: Rust
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: "distro-info-rs: Build"
run: cargo build --verbose
- name: "distro-info-rs: Run cargo test"
run: cargo test --verbose
- name: "binaries: Build"
run: cd binaries && cargo build --verbose
- name: "binaries: Run cargo test"
run: cd binaries && cargo test --verbose
- name: "binaries: Upstream tests"
run: cd tests && make ci-install-deps && make test
coverage:
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:develop-nightly
options: --security-opt seccomp=unconfined
steps:
- uses: actions/checkout@v3
- name: Install distro-info-data
run: |
apt-get update -qqy
apt-get install -qqy distro-info-data
- name: "distro-info-rs: Coverage"
run: |
cargo +nightly tarpaulin \
--exclude-files binaries/\* \
--fail-under 73 \
--out html
- name: upload coverage HTML
uses: actions/upload-artifact@v2
with:
name: tarpaulin-report.html
path: tarpaulin-report.html