Skip to content

Commit 23135f2

Browse files
committed
ci: Add clippy lint check
1 parent 1340772 commit 23135f2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches:
88
- master
99

10+
env:
11+
clippy_rust_version: '1.82'
12+
1013
jobs:
1114
check:
1215
runs-on: ubuntu-latest
@@ -50,3 +53,13 @@ jobs:
5053
- uses: Swatinem/rust-cache@v2
5154
- name: check with all-features
5255
run: cargo hack --rust-version --no-private --no-dev-deps check --all-features
56+
57+
clippy:
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v2
61+
- uses: dtolnay/rust-toolchain@stable
62+
with:
63+
toolchain: ${{ env.clippy_rust_version }}
64+
components: clippy
65+
- run: cargo clippy --all-features --tests -- -D warnings

0 commit comments

Comments
 (0)