-
-
Notifications
You must be signed in to change notification settings - Fork 10
58 lines (53 loc) · 1.37 KB
/
checks.yml
File metadata and controls
58 lines (53 loc) · 1.37 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: checks
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -D warnings
on:
push:
pull_request:
jobs:
formatting:
name: Rust formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Rust formatting
run: cargo fmt --all --check
rust_checks:
name: Rust checks (clippy, doc)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Rust clippy
run: cargo clippy --workspace --profile=test --locked
- name: Rust doc
env:
RUSTDOCFLAGS: "-D warnings"
if: $${{ always() }} # run even if clippy failed
run: cargo doc --workspace --no-deps --locked
- name: Run tests
run: cargo test --verbose --locked
toml:
name: Toml formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gwen-lg/taplo-action@v1
with:
format: true
spelling:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v4
- name: Spell Check Repo
uses: crate-ci/typos@v1