Debian Codegraph @

.github/workflows/lint.yml

raw symbols SCIP
1 ---
2 name: Lint
3
4 "on":
5 pull_request:
6 types: [opened, synchronize, reopened]
7
8 jobs:
9 fmt:
10 runs-on: ubuntu-latest
11 steps:
12 - uses: actions/checkout@v4
13
14 - name: Install Rust
15 uses: actions-rust-lang/[email protected]
16 with:
17 components: rustfmt
18
19 - name: Check with Rustfmt
20 run: cargo fmt --all -- --check
21
22 clippy:
23 runs-on: ubuntu-latest
24 steps:
25 - uses: actions/checkout@v4
26
27 - name: Install Rust
28 uses: actions-rust-lang/[email protected]
29 with:
30 components: clippy
31
32 - name: Check with Clippy
33 uses: giraffate/clippy-action@v1
34 with:
35 reporter: github-pr-check
36 github_token: ${{ secrets.GITHUB_TOKEN }}
37 clippy_flags: --workspace --all-features --tests --examples --bins -- -Dclippy::todo -Aunknown_lints
38
39 lint-docs:
40 runs-on: ubuntu-latest
41 steps:
42 - uses: actions/checkout@v4
43
44 - name: Install Rust
45 uses: actions-rust-lang/[email protected]
46 with:
47 components: rust-docs
48
49 - name: Check for broken intra-doc links
50 env:
51 RUSTDOCFLAGS: -Dwarnings
52 run: cargo doc --no-deps --all-features --workspace