Enforce rustfmt on CI

Fixes #1214
This commit is contained in:
bjorn3 2021-12-30 12:09:44 +01:00
parent 9bcdb53053
commit 40e88469ce
1 changed files with 15 additions and 0 deletions

View File

@ -8,6 +8,21 @@ env:
RUSTFLAGS: "-Dwarnings" # Deny warnings on CI
jobs:
rustfmt:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Install rustfmt
run: |
rustup component add rustfmt
- name: Rustfmt
run: |
cargo fmt --check
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 60