Skip to content

Commit f21c655

Browse files
committed
ci: add clippy workflow task.
This ensures `cargo clippy` is run consistently, and denies warnings.
1 parent 7ea48e7 commit f21c655

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@ env:
1111
RUSTFLAGS: -D warnings
1212

1313
jobs:
14+
clippy:
15+
name: Clippy
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout sources
19+
uses: actions/checkout@v3
20+
with:
21+
persist-credentials: false
22+
- name: Install rust toolchain
23+
uses: dtolnay/rust-toolchain@stable
24+
with:
25+
components: clippy
26+
- run: cargo clippy --all --all-features -- --deny warnings
27+
1428
build-windows:
1529
runs-on: windows-latest
1630
steps:

0 commit comments

Comments
 (0)