From 7de1c047762318722c09b9099890996894b82b92 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Sat, 4 Jan 2020 20:24:32 -0800 Subject: [PATCH] Fail CI if code isn't formatted type: testing --- .github/workflows/rust.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml index 8e7e9af..ced2721 100644 --- a/.github/workflows/rust.yaml +++ b/.github/workflows/rust.yaml @@ -18,7 +18,7 @@ jobs: with: toolchain: stable profile: minimal - components: clippy + components: clippy, rustfmt override: true - name: Version run: | @@ -31,3 +31,5 @@ jobs: run: cargo test --verbose - name: Lint run: cargo clippy + - name: Format + run: cargo fmt -- --check