Skip to content

Commit

Permalink
Check for broken doc links in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
robamler committed Aug 26, 2024
1 parent 3a07233 commit 4f37e82
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ jobs:
RUSTFLAGS: "-D warnings"
run: cargo clippy --all-targets --all-features

# The environment variable `RUSTFLAGS` doesn't actually seem to have any effect on rustdoc,
# but we set it here to the same value as in all other cargo runs as changing it would
# cause unnecessary recompilation of some dependencies.
- name: Check for broken doc links
env:
RUSTFLAGS: "-D warnings"
run: cargo rustdoc -- -D rustdoc::broken-intra-doc-links

- name: Test in development mode
env:
RUSTFLAGS: "-D warnings"
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ jobs:
RUSTFLAGS: "-D warnings"
run: cargo clippy --all-targets --all-features

# The environment variable `RUSTFLAGS` doesn't actually seem to have any effect on rustdoc,
# but we set it here to the same value as in all other cargo runs as changing it would
# cause unnecessary recompilation of some dependencies.
- name: Check for broken doc links
env:
RUSTFLAGS: "-D warnings"
run: cargo rustdoc -- -D rustdoc::broken-intra-doc-links

- name: Test in development mode
env:
RUSTFLAGS: "-D warnings"
Expand Down

0 comments on commit 4f37e82

Please sign in to comment.