Skip to content

Commit 0559f27

Browse files
ehussGankra
authored andcommitted
Use rust-lang/rust linkchecker on CI.
1 parent 9f131b5 commit 0559f27

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,22 @@ jobs:
1212
- name: Install Rust
1313
run: |
1414
rustup set profile minimal
15-
rustup toolchain install nightly
15+
rustup toolchain install nightly -c rust-docs
1616
rustup default nightly
1717
- name: Install mdbook
1818
run: |
1919
mkdir bin
20-
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.3.4/mdbook-v0.3.4-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
20+
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.3.5/mdbook-v0.3.5-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
2121
echo "##[add-path]$(pwd)/bin"
2222
- name: Report versions
2323
run: |
2424
rustup --version
2525
rustc -Vv
2626
mdbook --version
2727
- name: Run tests
28-
run: mdbook test
28+
run: mdbook test
29+
- name: Check for broken links
30+
run: |
31+
curl -sSLo linkcheck.sh \
32+
https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
33+
sh linkcheck.sh --all nomicon

0 commit comments

Comments
 (0)