Skip to content

Commit 988b457

Browse files
committed
Use rust-lang/rust linkchecker on CI.
1 parent 37f9e68 commit 988b457

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,27 @@ jobs:
1111
run: rustup self update
1212
- name: Install Rust
1313
run: |
14+
set -e
1415
rustup set profile minimal
1516
rustup toolchain install nightly -c rust-docs
16-
rustup default nightly
17+
rustup default nightly
1718
- name: Install mdbook
1819
run: |
20+
set -e
1921
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
22+
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
2123
echo "##[add-path]$(pwd)/bin"
2224
- name: Report versions
2325
run: |
26+
set -ex
2427
rustup --version
2528
rustc -Vv
2629
mdbook --version
2730
- name: Run tests
28-
run: mdbook test
31+
run: mdbook test
32+
- name: Check for broken links
33+
run: |
34+
set -e
35+
curl -sSLo linkcheck.sh \
36+
https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
37+
sh linkcheck.sh --all edition-guide

0 commit comments

Comments
 (0)