github: make CI check formatting

I've forgotten to run `rustfmt` many times (most recently in
5721436558), so let's have CI check for it.
This commit is contained in:
Martin von Zweigbergk 2022-03-07 21:02:25 -08:00 committed by Martin von Zweigbergk
parent 3a306e6a23
commit 32e22831fc

View file

@ -34,6 +34,22 @@ jobs:
env:
RUST_BACKTRACE: 1
rustfmt:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
components: rustfmt
override: true
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy-stable:
name: Clippy check (stable)
runs-on: ubuntu-latest