Skip to content

Commit d36202b

Browse files
authored
Merge pull request #509 from smoltcp-rs/ci-rustfmt
Enforce rustfmt in CI
2 parents 048f29d + 3abc8cf commit d36202b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/rustfmt.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
on:
2+
push:
3+
branches: [ staging, trying, master ]
4+
pull_request:
5+
6+
name: Rustfmt check
7+
jobs:
8+
fmt:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions-rs/toolchain@v1
13+
with:
14+
toolchain: stable
15+
protile: minimal
16+
components: rustfmt
17+
- name: Check fmt
18+
run: cargo fmt -- --check

0 commit comments

Comments
 (0)