-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.73 KB
/
lints.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
on: [push, pull_request]
name: Lints on nightly toolchain
jobs:
clippy:
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy
- name: Check Clippy lints (no default features)
run: cargo clippy --verbose --all --no-default-features
- name: Check Clippy lints (log feature)
run: cargo clippy --verbose --all --no-default-features --features=log
- name: Check Clippy lints (all features)
run: cargo clippy --verbose --all --all-features
- name: Check Clippy lints (default features)
run: cargo clippy --verbose --all
- name: Check Clippy lints on tests (no default features)
run: cargo clippy --verbose --all --tests --no-default-features
- name: Check Clippy lints on tests (log feature)
run: cargo clippy --verbose --all --tests --no-default-features --features=log
- name: Check Clippy lints on tests (all features)
run: cargo clippy --verbose --all --tests --all-features
- name: Check Clippy lints on tests (default features)
run: cargo clippy --verbose --all --tests
- name: Check Clippy lints on benchmarks (no default features)
run: cargo clippy --verbose --all --benches --no-default-features
- name: Check Clippy lints on benchmarks (log feature)
run: cargo clippy --verbose --all --benches --no-default-features --features=log
- name: Check Clippy lints on benchmarks (all features)
run: cargo clippy --verbose --all --benches --all-features
- name: Check Clippy lints on benchmarks (default features)
run: cargo clippy --verbose --all --benches