CICD: Add 'cargo fmt' check

This commit is contained in:
Martin Nordholts 2021-08-18 13:40:48 +02:00
parent f5c1cb2dff
commit cbd96237fd
1 changed files with 6 additions and 1 deletions

View File

@ -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: