summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Nordholts <enselic@gmail.com>2021-08-18 13:40:48 +0200
committerMartin Nordholts <enselic@gmail.com>2021-08-19 07:18:05 +0200
commitcbd96237fde1f1ef94d60c0bc6e6e5e754ac1879 (patch)
tree48826e8b66aaad650500ea874c78edbe7d7a2acb
parentf5c1cb2dff1f82a55d9212e6878867372e87eda4 (diff)
CICD: Add 'cargo fmt' check
-rw-r--r--.github/workflows/CICD.yml7
1 files changed, 6 insertions, 1 deletions
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: