Skip to content

Commit 5754bb7

Browse files
authored
Attempt to use GH actions for rustfmt check (#207)
Use GH actions for rustfmt check
1 parent 1357e5a commit 5754bb7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/rustfmt.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on: [push, pull_request]
2+
3+
name: Code formatting check
4+
5+
jobs:
6+
fmt:
7+
name: Rustfmt
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions-rs/toolchain@v1
12+
with:
13+
profile: minimal
14+
toolchain: stable
15+
override: true
16+
- run: rustup component add rustfmt
17+
- uses: actions-rs/cargo@v1
18+
with:
19+
command: fmt
20+
args: --all -- --check

0 commit comments

Comments
 (0)