From cbd96237fde1f1ef94d60c0bc6e6e5e754ac1879 Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Wed, 18 Aug 2021 13:40:48 +0200 Subject: [PATCH] CICD: Add 'cargo fmt' check --- .github/workflows/CICD.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 220a12d2..794c17d5 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -27,7 +27,12 @@ jobs: toolchain: ${{ env.MIN_SUPPORTED_RUST_VERSION }} default: true profile: minimal # minimal component installation (ie, no documentation) - components: clippy + components: clippy, rustfmt + - name: Ensure `cargo fmt` has been run + uses: actions-rs/cargo@v1 + with: + command: fmt + args: -- --check - name: Run clippy (on minimum supported rust version to prevent warnings we can't fix) uses: actions-rs/cargo@v1 with: