-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (52 loc) · 1.33 KB
/
checks.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
name: Rust checks
on: push
env:
RUSTFLAGS: "-Dwarnings"
jobs:
cargo-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run cargo check
run: cd bft && cargo check --all
fmt-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run cargo fmt
run: cd bft && cargo fmt --all --check
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run cargo fmt
run: cd bft && cargo test --all
clippy-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Clippy
run: cd bft && cargo clippy --all-targets --all-features
docs:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- uses: actions/checkout@v3
- name: Build Docs
run: cd bft && cargo doc --all
- name: Make index.html a link to help.html
run: cd bft/target/doc && ln -s help.html index.html
- uses: actions/upload-artifact@v3
with:
name: rustdoc
path: bft/target/doc
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Tarpaulin
run: cargo install cargo-tarpaulin
- name: Run Tarpaulin
run: cd bft && cargo tarpaulin --all