-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (31 loc) · 1.04 KB
/
rust-clippy.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
name: Rust clippy
on:
pull_request:
push:
branches:
- main
- stable
jobs:
linter:
name: Cargo clippy
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}
- name: Checkout sources
uses: actions/checkout@v4.2.2
with:
fetch-depth: 50
submodules: 'recursive'
- name: Install Rust stable toolchain
uses: actions-rs/toolchain@v1.0.7
with:
profile: minimal
toolchain: stable
override: true
- name: Rust Cache
uses: Swatinem/rust-cache@v2.7.5
- name: cargo clippy
run: cargo clippy --all-targets -- -D warnings