Repository navigation
145 lines (134 loc) · 5.04 KB
/
Copy pathlint.yml
File metadata and controls
145 lines (134 loc) · 5.04 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
name: Lint
permissions:
contents: read
on:
push:
branches: [main, next]
pull_request:
concurrency:
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true
env:
CARGO_PROFILE_DEV_DEBUG: 0
RUST_CACHE_KEY: rust-cache-2026.02.18
jobs:
unused_deps:
name: Check for unused dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- name: Install cargo-shear
uses: taiki-e/install-action@055f5df8c3f65ea01cd41e9dc855becd88953486 # v2.75.18
with:
tool: cargo-shear@1.11.2
- name: Check for unused dependencies
run: make shear
workspace_inheritance:
name: Workspace inheritance
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
# Do not pin taiki-e's moving tool shortcut tags by hash. Pin a released
# install-action commit and set tool explicitly, or zizmor's
# impostor-commit audit can flag stale shortcut-tag hashes.
- name: Install cargo-binstall
uses: taiki-e/install-action@055f5df8c3f65ea01cd41e9dc855becd88953486 # v2.75.18
with:
tool: cargo-binstall
- name: Install workspace inheritance checker
run: cargo binstall --no-confirm cargo-workspace-inheritance-check@1.3.0
- name: Check workspace inheritance
run: cargo workspace-inheritance-check --promotion-threshold 2 --promotion-failure
typos:
name: Spellcheck
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
# Keep this on a released install-action commit with an explicit tool; shortcut tags can
# trip zizmor's impostor-commit audit when they are later retagged.
- uses: taiki-e/install-action@055f5df8c3f65ea01cd41e9dc855becd88953486 # v2.75.18
with:
tool: typos@1.42.0
- run: make typos-check
toml:
name: Toml formatting
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
# Keep this on a released install-action commit with an explicit tool; shortcut tags can
# trip zizmor's impostor-commit audit when they are later retagged.
- uses: taiki-e/install-action@055f5df8c3f65ea01cd41e9dc855becd88953486 # v2.75.18
with:
tool: taplo-cli@0.10.0
- run: make toml-check
clippy:
name: Clippy
runs-on: warp-ubuntu-latest-x64-8x
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- name: Cleanup large tools for build space
uses: ./.github/actions/cleanup-runner
- name: Add Rust Cache
uses: WarpBuilds/rust-cache@9d0cc3090d9c87de74ea67617b246e978735b1a1 # v2.9.1
with:
shared-key: rust-release
prefix-key: ${{ env.RUST_CACHE_KEY }}
save-if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/next' }}
- name: Install Rust with clippy
run: |
rustup update --no-self-update
rustup component add clippy
- name: make - clippy
run: make clippy
format:
name: Format check
runs-on: warp-ubuntu-latest-x64-8x
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- name: Cleanup large tools for build space
uses: ./.github/actions/cleanup-runner
- name: Add Rust Cache
uses: WarpBuilds/rust-cache@9d0cc3090d9c87de74ea67617b246e978735b1a1 # v2.9.1
with:
shared-key: rust-format
prefix-key: ${{ env.RUST_CACHE_KEY }}
save-if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/next' }}
- name: Install Rust with rustfmt
run: |
rustup update --no-self-update nightly
rustup +nightly component add rustfmt
- name: make - format-check
run: make format-check
rustdocs:
name: Build rust documentation
runs-on: warp-ubuntu-latest-x64-8x
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- name: Cleanup large tools for build space
uses: ./.github/actions/cleanup-runner
- name: Add Rust Cache
uses: WarpBuilds/rust-cache@9d0cc3090d9c87de74ea67617b246e978735b1a1 # v2.9.1
with:
shared-key: rust-docs
prefix-key: ${{ env.RUST_CACHE_KEY }}
save-if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/next' }}
- name: Install Rust
run: rustup update --no-self-update
- name: make - doc
run: make doc