Skip to content

Commit f7b1de6

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

File tree

1 file changed

+11
-26
lines changed

1 file changed

+11
-26
lines changed

.github/workflows/format.yaml

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,20 @@
1-
name: Check formatting & Clippy
1+
name: Check formatting
22
on:
33
push:
4+
branches:
5+
- master
46
pull_request:
57

6-
permissions:
7-
contents: read
8-
9-
concurrency:
10-
group: deploy
11-
cancel-in-progress: false
12-
138
jobs:
149
fmt:
1510
name: Check code formatting
1611
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
2912
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
13+
- uses: actions/checkout@v4
14+
15+
- uses: actions-rust-lang/setup-rust-toolchain@v1
16+
with:
17+
components: rustfmt
18+
19+
- name: Rustfmt Check
20+
uses: actions-rust-lang/rustfmt@v1

0 commit comments

Comments
 (0)