Add clippy to CI

In order to keep the codebase linting cleanly add a CI job to run
clippy.
This commit is contained in:
Tobin C. Harding 2022-06-10 12:49:58 +10:00
parent 9f1ebb93cb
commit 6d76bd4a89
1 changed files with 16 additions and 0 deletions

View File

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