Skip to content

Commit 4927074

Browse files
authored
Merge pull request #197 from ehuss/linkcheck-script
Use rust-lang/rust linkchecker on CI.
2 parents 8204c1d + 51d5eeb commit 4927074

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
@@ -13,16 +13,21 @@ jobs:
1313
run: |
1414
rustup set profile minimal
1515
rustup toolchain install nightly -c rust-docs
16-
rustup default nightly
16+
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 edition-guide

0 commit comments

Comments
 (0)