Skip to content

Commit 54559c0

Browse files
committed
chore(CI): try and fix the format.yaml workflow
1 parent d0b5e30 commit 54559c0

File tree

1 file changed

+9
-26
lines changed

1 file changed

+9
-26
lines changed

.github/workflows/format.yaml

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,18 @@
1-
name: Check formatting & Clippy
1+
name: Check formatting
22
on:
33
push:
44
pull_request:
55

6-
permissions:
7-
contents: read
8-
9-
concurrency:
10-
group: deploy
11-
cancel-in-progress: false
12-
136
jobs:
147
fmt:
158
name: Check code formatting
169
runs-on: ubuntu-latest
17-
container: rust:slim
18-
steps:
19-
- name: Checkout
20-
uses: actions/checkout@v2
21-
- name: Install rustfmt
22-
run: rustup component add rustfmt
23-
- name: Check formatting
24-
run: cargo fmt -- --check
25-
clippy:
26-
name: Check code style
27-
runs-on: ubuntu-latest
28-
container: rust:slim
2910
steps:
30-
- name: Checkout
31-
uses: actions/checkout@v2
32-
- name: Install clippy
33-
run: rustup component add clippy
34-
- name: Check style
35-
run: cargo clippy -- -D warnings
11+
- uses: actions/checkout@v4
12+
13+
- uses: actions-rust-lang/setup-rust-toolchain@v1
14+
with:
15+
components: rustfmt
16+
17+
- name: Rustfmt Check
18+
uses: actions-rust-lang/rustfmt@v1

0 commit comments

Comments
 (0)