Skip to content

Commit 2e870e7

Browse files
Update rustfmt.yaml
1 parent 511c078 commit 2e870e7

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.github/workflows/rustfmt.yaml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
on:
32
push:
43
branches: [ staging, trying, master ]
@@ -9,16 +8,11 @@ name: Code formatting check
98
jobs:
109
fmt:
1110
name: Rustfmt
12-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-latest
1312
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions-rs/toolchain@v1
13+
- uses: actions/checkout@v3
14+
- uses: dtolnay/rust-toolchain@stable
1615
with:
17-
profile: minimal
18-
toolchain: stable
19-
override: true
2016
components: rustfmt
21-
- uses: actions-rs/cargo@v1
22-
with:
23-
command: fmt
24-
args: --all -- --check
17+
- name: Run Rustfmt
18+
run: cargo fmt --all -- --check --verbose

0 commit comments

Comments
 (0)