Skip to content

Commit 6d76bd4

Browse files
committed
Add clippy to CI
In order to keep the codebase linting cleanly add a CI job to run clippy.
1 parent 9f1ebb9 commit 6d76bd4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/rust.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,19 @@ jobs:
7373
env:
7474
DO_WASM: true
7575
run: ./contrib/test.sh
76+
77+
Clippy:
78+
name: Clippy
79+
runs-on: ubuntu-latest
80+
steps:
81+
- uses: actions/checkout@v2
82+
- uses: actions-rs/toolchain@v1
83+
with:
84+
profile: minimal
85+
toolchain: stable
86+
override: true
87+
- run: rustup component add clippy
88+
- uses: actions-rs/cargo@v1
89+
with:
90+
command: clippy
91+
args: --features=rand-std,recovery,lowmemory,global-context --all-targets -- -D warnings

0 commit comments

Comments
 (0)