Skip to content

Commit 98df7e8

Browse files
authored
ci: combine clippy and doc job (#13175)
Save a job.
1 parent 87dec82 commit 98df7e8

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -207,27 +207,17 @@ jobs:
207207
files: .
208208

209209
lint:
210-
name: Clippy
210+
name: Lint
211211
runs-on: ubuntu-latest
212212
steps:
213213
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1
214214
- uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0
215215
with:
216216
save-cache: ${{ github.ref_name == 'main' }}
217217
cache-key: clippy
218-
components: clippy
218+
components: clippy rust-docs
219219
- run: cargo lint -- -D warnings
220220
- run: cargo lint --profile dev-no-debug-assertions -- -D warnings
221-
222-
doc:
223-
name: Doc
224-
runs-on: ubuntu-latest
225-
steps:
226-
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1
227-
- uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0
228-
with:
229-
cache-key: warm
230-
components: rust-docs
231221
- run: RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --document-private-items
232222

233223
conformance:

0 commit comments

Comments
 (0)