From 6d76bd4a8952f0a03f204b8096eaf6f0dc5d40d3 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Fri, 10 Jun 2022 12:49:58 +1000 Subject: [PATCH] Add clippy to CI In order to keep the codebase linting cleanly add a CI job to run clippy. --- .github/workflows/rust.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 88f9467..d21d56e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -73,3 +73,19 @@ jobs: env: DO_WASM: true run: ./contrib/test.sh + + Clippy: + name: Clippy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - run: rustup component add clippy + - uses: actions-rs/cargo@v1 + with: + command: clippy + args: --features=rand-std,recovery,lowmemory,global-context --all-targets -- -D warnings