-
-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (45 loc) · 1.51 KB
/
main.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Rust
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run build
run: cargo build --verbose
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run tests
run: cargo test --verbose
- name: Generate documentation
run: cargo doc --verbose
- name: Run coverage
run: cargo install cargo-tarpaulin && cargo tarpaulin --avoid-cfg-tarpaulin # --fail-under 75
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run Rustfmt
run: cargo fmt -- --check
- name: Run Clippy
run: cargo clippy --verbose
- name: Run Cargo check
run: cargo check --verbose
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run benchmarks
run: cargo bench --verbose
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run dependency security audit
run: cargo install cargo-audit && cargo --verbose audit
- name: Install cargo-outdated
run: cargo install cargo-outdated
- name: Run depedency version audit
run: cargo outdated --root-deps-only --verbose --exit-code 1