Skip to content

Commit 5f8f7f9

Browse files
committed
ci: add rustdoc check with deny warnings.
Catches things like broken links.
1 parent b2c2971 commit 5f8f7f9

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/rustdoc.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
on:
2+
push: # Run CI for all branches except GitHub merge queue tmp branches
3+
branches-ignore:
4+
- "gh-readonly-queue/**"
5+
pull_request: # Run CI for PRs on any branch
6+
merge_group: # Run CI for the GitHub merge queue
7+
8+
name: Rustdoc check
9+
jobs:
10+
clippy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: dtolnay/rust-toolchain@master
15+
with:
16+
toolchain: nightly-2023-07-03
17+
- run: RUSTDOCFLAGS="--deny=warnings --cfg=docsrs" cargo doc --all-features

0 commit comments

Comments
 (0)