Use rust-lang/rust linkchecker on CI.

pull/215/head
Eric Huss 5 years ago committed by Alexis Beingessner
parent 9f131b5b9c
commit 0559f276a3

@ -12,12 +12,12 @@ jobs:
- name: Install Rust - name: Install Rust
run: | run: |
rustup set profile minimal rustup set profile minimal
rustup toolchain install nightly rustup toolchain install nightly -c rust-docs
rustup default nightly rustup default nightly
- name: Install mdbook - name: Install mdbook
run: | run: |
mkdir bin mkdir bin
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 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
echo "##[add-path]$(pwd)/bin" echo "##[add-path]$(pwd)/bin"
- name: Report versions - name: Report versions
run: | run: |
@ -25,4 +25,9 @@ jobs:
rustc -Vv rustc -Vv
mdbook --version mdbook --version
- name: Run tests - name: Run tests
run: mdbook test run: mdbook test
- name: Check for broken links
run: |
curl -sSLo linkcheck.sh \
https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
sh linkcheck.sh --all nomicon

Loading…
Cancel
Save