summaryrefslogtreecommitdiffstats
path: root/.github/workflows/CICD.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/CICD.yml')
-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: