-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 857 Bytes
/
lint.yml
File metadata and controls
31 lines (27 loc) · 857 Bytes
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
name: 🖋 Check linting
on:
pull_request:
push:
branches: ["main", "master", "develop", "release"]
env:
CARGO_TERM_COLOR: always
jobs:
check_lint_rust:
name: 🖋 Check linting
runs-on: ubuntu-latest
steps:
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions/checkout@v2
- name: Check linting
run: |
rustup component add clippy
set env RUSTFLAGS="-Dwarnings"
cargo clippy --workspace -- -D warnings