Skip to content

Commit 550914c

Browse files
committed
Add workflow for clippy
1 parent 22a3de5 commit 550914c

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/clippy.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Clippy
2+
3+
on:
4+
push:
5+
branches: [ staging, trying, master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
defaults:
10+
run:
11+
shell: bash
12+
13+
env:
14+
CLIPPY_PARAMS: -W clippy::all -W clippy::pedantic -W clippy::nursery -W clippy::cargo
15+
16+
jobs:
17+
clippy:
18+
name: Clippy
19+
runs-on: ubuntu-latest
20+
strategy:
21+
matrix:
22+
cargo_flags:
23+
- "--no-default-features"
24+
- "--all-features"
25+
steps:
26+
- name: Checkout source code
27+
uses: actions/checkout@v3
28+
29+
- name: Install Rust toolchain
30+
uses: dtolnay/rust-toolchain@stable
31+
with:
32+
toolchain: stable
33+
components: clippy
34+
35+
- name: Run clippy
36+
run: cargo clippy --all ${{ matrix.cargo_flags }} -- -D warnings

0 commit comments

Comments
 (0)