Skip to content

Commit 2d88846

Browse files
committed
ci: add link-heartbeat check
Check if links in the documentation are still accurate. Signed-off-by: Benno Lossin <[email protected]>
1 parent ac70ff7 commit 2d88846

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/ci.yml

+15-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
with:
4141
components: rust-src
4242
- run: git config user.name "github-runner" && git config user.email "<>"
43-
- run: git rebase --exec 'cargo doc --no-deps' --root
43+
- run: git rebase --exec 'cargo doc --no-deps' --root
4444
clippy:
4545
runs-on: ubuntu-latest
4646
steps:
@@ -195,3 +195,17 @@ jobs:
195195
fi
196196
false
197197
fi
198+
link-heartbeat:
199+
runs-on: ubuntu-latest
200+
steps:
201+
- uses: actions/checkout@v4
202+
with:
203+
fetch-depth: ${{github.event.pull_request.commits}}
204+
ref: ${{github.event.pull_request.head.sha}}
205+
- uses: dtolnay/rust-toolchain@nightly
206+
- uses: dtolnay/rust-toolchain@nightly
207+
with:
208+
components: rust-src
209+
- run: sudo apt-get install -y linkchecker
210+
- run: git config user.name "github-runner" && git config user.email "<>"
211+
- run: git rebase --exec 'cargo doc --no-deps && linkchecker target/doc/*/*.html' --root

0 commit comments

Comments
 (0)