Enforce rustfmt in CI

This commit is contained in:
Dario Nieuwenhuis 2021-06-28 20:13:06 +02:00
parent 5e58dd1db2
commit 68ec69d411
1 changed files with 18 additions and 0 deletions

18
.github/workflows/rustfmt.yaml vendored Normal file
View File

@ -0,0 +1,18 @@
on:
push:
branches: [ staging, trying, master ]
pull_request:
name: Rustfmt check
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
protile: minimal
components: rustfmt
- name: Check fmt
run: cargo fmt -- --check