Skip to content

Commit 40e8846

Browse files
committed
Enforce rustfmt on CI
Fixes #1214
1 parent 9bcdb53 commit 40e8846

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/main.yml

+15
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,21 @@ env:
88
RUSTFLAGS: "-Dwarnings" # Deny warnings on CI
99

1010
jobs:
11+
rustfmt:
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 10
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Install rustfmt
19+
run: |
20+
rustup component add rustfmt
21+
22+
- name: Rustfmt
23+
run: |
24+
cargo fmt --check
25+
1126
build:
1227
runs-on: ${{ matrix.os }}
1328
timeout-minutes: 60

0 commit comments

Comments
 (0)