-
Notifications
You must be signed in to change notification settings - Fork 45
56 lines (47 loc) · 1.26 KB
/
Copy pathlint.yml
File metadata and controls
56 lines (47 loc) · 1.26 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Lint
on:
pull_request:
push:
branches-ignore:
- main
- release*
permissions:
contents: read
jobs:
format:
name: Format Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Rust Tool Chain setup
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt
- name: Check Formatting
run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
steps:
- name: Checkout
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Rust Tool Chain setup
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy
- name: Cargo Fetch
run: cargo fetch
- name: Run Clippy
# Lint every target (including tests) and every feature so issues in
# test code and feature-gated code are caught in CI.
run: cargo clippy --workspace --all-targets --all-features -- -D warnings