Skip to content

Commit 675e2a4

Browse files
committed
Add clippy to workflow
1 parent a7f7836 commit 675e2a4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,22 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15+
run-clippy:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- id: checkout
19+
uses: actions/checkout@v4
20+
- name: Cache
21+
uses: actions/cache@v4
22+
with:
23+
path: |
24+
~/.cargo/bin/
25+
~/.cargo/registry/index/
26+
~/.cargo/registry/cache/
27+
~/.cargo/git/db/
28+
target/
29+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
30+
- run: cargo clippy --all-targets --all-features -- -D warnings
1531
run-tests:
1632
runs-on: ubuntu-latest
1733
steps:

0 commit comments

Comments
 (0)