Spaces:
Runtime error
Runtime error
add format and clippy checks to the CI jobs
Browse files
.github/workflows/rust_format.yml
CHANGED
@@ -19,7 +19,16 @@ jobs:
|
|
19 |
profile: minimal
|
20 |
toolchain: stable
|
21 |
components: rustfmt, clippy
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
- name: Run cargo check
|
24 |
uses: actions-rs/cargo@v1
|
25 |
with:
|
|
|
19 |
profile: minimal
|
20 |
toolchain: stable
|
21 |
components: rustfmt, clippy
|
22 |
+
- name: Format
|
23 |
+
uses: actions-rs/cargo@v1
|
24 |
+
with:
|
25 |
+
command: fmt
|
26 |
+
args: -- --check
|
27 |
+
- name: Clippy
|
28 |
+
uses: actions-rs/cargo@v1
|
29 |
+
with:
|
30 |
+
command: clippy
|
31 |
+
args: --all-features --all-targets --all
|
32 |
- name: Run cargo check
|
33 |
uses: actions-rs/cargo@v1
|
34 |
with:
|