summaryrefslogtreecommitdiffstats
path: root/.github/workflows/clippy.yml
blob: aee701529f1f5c95721aae4210fe0af4a41cc074 (plain)
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
name: Clippy - Catch common mistakes and improve your Rust code

on:
  push:
    branches: [dev, main]
  pull_request:
    branches: [dev, main]

jobs:
  check:
    name: Clippy - Catch common mistakes and improve your Rust code
    runs-on: ubuntu-latest
    strategy:
      matrix:
        rust: [stable]
    steps:
      - uses: actions/checkout@v2
      - name: Install minimal ${{ matrix.rust }} rust
        uses: actions-rs/toolchain@v1
        with:
          override: true
          profile: minimal
          components: clippy
          toolchain: ${{ matrix.rust }}
      - run: cargo -Vv && rustc -Vv
      - run: cargo clippy -- --deny clippy::all --warn clippy::cargo
        if: ${{ matrix.rust == 'stable' }}