Spaces:
Runtime error
Runtime error
neon_arch
commited on
Commit
•
b4a05bc
1
Parent(s):
36aa2f9
ci: fix clippy.yml
Browse files- .github/workflows/clippy.yml +2 -2
- .github/workflows/rustfmt.yml +11 -15
.github/workflows/clippy.yml
CHANGED
@@ -15,5 +15,5 @@ jobs:
|
|
15 |
- run: rustup component add clippy
|
16 |
- uses: actions-rs/clippy-check@v1
|
17 |
with:
|
18 |
-
token: ${{ secrets.GITHUB_TOKEN }}
|
19 |
-
args: --all-features
|
|
|
15 |
- run: rustup component add clippy
|
16 |
- uses: actions-rs/clippy-check@v1
|
17 |
with:
|
18 |
+
token: ${{ secrets.GITHUB_TOKEN }}
|
19 |
+
args: --all-targets --all-features -- -D warnings
|
.github/workflows/rustfmt.yml
CHANGED
@@ -8,20 +8,16 @@ on:
|
|
8 |
- "rolling"
|
9 |
|
10 |
jobs:
|
11 |
-
|
12 |
-
name:
|
13 |
runs-on: ubuntu-latest
|
14 |
steps:
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
flags: --all
|
25 |
-
options: --manifest-path=Cargo.toml
|
26 |
-
args: --config-path=rustfmt.toml
|
27 |
-
working-directory: my_crate
|
|
|
8 |
- "rolling"
|
9 |
|
10 |
jobs:
|
11 |
+
formatting:
|
12 |
+
name: cargo fmt
|
13 |
runs-on: ubuntu-latest
|
14 |
steps:
|
15 |
+
- uses: actions/checkout@v3
|
16 |
+
# Ensure rustfmt is installed and setup problem matcher
|
17 |
+
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
18 |
+
with:
|
19 |
+
components: rustfmt
|
20 |
+
- name: Rustfmt Check
|
21 |
+
uses: Syndelis/rustfmt-action@v1
|
22 |
+
with:
|
23 |
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|