From 32e22831fc80731937da77bfdfbb92763a176621 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Mon, 7 Mar 2022 21:02:25 -0800 Subject: [PATCH] github: make CI check formatting I've forgotten to run `rustfmt` many times (most recently in 572143655866), so let's have CI check for it. --- .github/workflows/build.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d2ea1be2c..2df6e9d8d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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