File tree Expand file tree Collapse file tree 1 file changed +30
-14
lines changed
Expand file tree Collapse file tree 1 file changed +30
-14
lines changed Original file line number Diff line number Diff line change 1212jobs :
1313 rustfmt :
1414 runs-on : ubuntu-latest
15-
1615 steps :
1716 - name : Checkout
1817 uses : actions/checkout@v3
1918
20- - name : Set up Rust
19+ - name : Nightly Rust
2120 uses : actions-rs/toolchain@v1
2221 with :
2322 toolchain : nightly
2423 components : rustfmt
2524
26- - name : Cargo fmt
25+ - name : Rustfmt
2726 run : cargo fmt -- --check
2827
2928 clippy :
3029 runs-on : ubuntu-latest
31-
3230 steps :
3331 - name : Checkout
3432 uses : actions/checkout@v3
3533
36- - name : Set up Rust
34+ - name : Stable Rust
3735 uses : actions-rs/toolchain@v1
3836 with :
3937 toolchain : stable
4038 components : clippy
4139
4240 - name : Clippy
43- run : cargo clippy --bins --examples --tests -- -D warnings
41+ run : cargo clippy --all-targets -- -D warnings
4442
4543 test :
4644 runs-on : ubuntu-latest
47-
4845 steps :
4946 - name : Checkout
5047 uses : actions/checkout@v3
5148
52- - name : Set up Rust
49+ - name : Stable Rust
5350 uses : actions-rs/toolchain@v1
5451 with :
5552 toolchain : stable
5653
57- - name : Cargo test
58- run : cargo test --bins --examples --tests
54+ - name : Test all targets
55+ run : cargo test --all-targets
56+
57+ - name : Test docs
58+ run : cargo test --doc
5959
6060 typos :
6161 runs-on : ubuntu-latest
@@ -70,18 +70,34 @@ jobs:
7070
7171 cargo_sort :
7272 runs-on : ubuntu-latest
73-
7473 steps :
7574 - name : Checkout
7675 uses : actions/checkout@v3
7776
78- - name : Set up Rust
77+ - name : Stable Rust
7978 uses : actions-rs/toolchain@v1
8079 with :
8180 toolchain : stable
8281
8382 - name : Install cargo-sort
84- run : cargo install cargo-sort
83+ run : cargo install --locked cargo-sort
8584
86- - name : Are Cargo configs sorted?
85+ - name : Check ` Cargo.toml` sort
8786 run : cargo sort -c
87+
88+ machete :
89+ runs-on : ubuntu-latest
90+ steps :
91+ - name : Checkout
92+ uses : actions/checkout@v3
93+
94+ - name : Stable Rust
95+ uses : actions-rs/toolchain@v1
96+ with :
97+ toolchain : stable
98+
99+ - name : Install `cargo-machete`
100+ run : cargo install --locked cargo-machete
101+
102+ - name : Check unused Cargo dependencies
103+ run : cargo machete
You can’t perform that action at this time.
0 commit comments