Debian Codegraph @

debian/rust-vendor/rust-ini/.github/workflows/clippy-check.yml

raw
1 name: Clippy Check
2
3 on:
4 push:
5 branches: [master]
6 pull_request:
7 branches: [master]
8
9 env:
10 CARGO_TERM_COLOR: always
11 RUST_LOG: "trace"
12
13 jobs:
14 clippy-check:
15 strategy:
16 matrix:
17 platform:
18 - ubuntu-latest
19 - windows-latest
20 - macos-latest
21 runs-on: ${{ matrix.platform }}
22
23 steps:
24 - uses: actions/checkout@v2
25 - uses: Swatinem/rust-cache@v2
26 - name: Install Rust
27 uses: actions-rs/toolchain@v1
28 with:
29 toolchain: nightly
30 profile: minimal
31 components: clippy
32 default: true
33 override: true
34 - name: Clippy Check
35 uses: actions-rs/clippy-check@v1
36 with:
37 name: clippy-${{ matrix.platform }}
38 token: ${{ secrets.GITHUB_TOKEN }}
39 args: |
40 --all-features -- -Z macro-backtrace
41 -W clippy::absurd_extreme_comparisons
42 -W clippy::erasing_op
43 -A clippy::collapsible_else_if