diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 220d97d..d0b1aae 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -27,11 +27,25 @@ jobs: toolchain: ${{ env.MIN_SUPPORTED_RUST_VERSION }} default: true profile: minimal # minimal component installation (ie, no documentation) + 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: + command: clippy + args: --locked --all-targets - name: Run tests uses: actions-rs/cargo@v1 with: command: test + args: --locked build: name: ${{ matrix.job.os }} (${{ matrix.job.target }})