CICD: Add 'cargo fmt' check
commitcbd96237fde1f1ef94d60c0bc6e6e5e754ac1879
authorMartin Nordholts <enselic@gmail.com>
dateWed 18 Aug 2021, 13:40 (5 years ago)
parentf5c1cb2
.github/workflows/CICD.yml+6−1
@@ -27,7 +27,12 @@ jobs:
2727 toolchain: ${{ env.MIN_SUPPORTED_RUST_VERSION }}
2828 default: true
2929 profile: minimal # minimal component installation (ie, no documentation)
30− components: clippy
30+ components: clippy, rustfmt
31+ - name: Ensure `cargo fmt` has been run
32+ uses: actions-rs/cargo@v1
33+ with:
34+ command: fmt
35+ args: -- --check
3136 - name: Run clippy (on minimum supported rust version to prevent warnings we can't fix)
3237 uses: actions-rs/cargo@v1
3338 with: