Skip to content

Commit

Permalink
Fail CI on bad intradoc links
Browse files Browse the repository at this point in the history
I'm looking at extending the docs and want to make sure I don't
introduce a bad link.

It looks like
- CI won't fail on bad intradoc links
- We can't get it to with the `cargo` action

So dropping down to the shell to make sure bad links error, instead of
warn.
  • Loading branch information
epage authored and Geal committed Oct 23, 2021
1 parent 7c09098 commit 074fd29
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,9 @@ jobs:
override: true

- name: Build
uses: actions-rs/cargo@v1
with:
command: doc
args: --verbose --features "std docsrs"
env:
RUSTDOCFLAGS: -D warnings
run: cargo doc --no-deps --document-private-items --workspace --verbose --features "std docsrs"

fmt:
name: Check formatting
Expand Down

0 comments on commit 074fd29

Please sign in to comment.