From 2d88846793b373a09b740a2bbd6f182b216d70ae Mon Sep 17 00:00:00 2001 From: Benno Lossin Date: Tue, 22 Apr 2025 00:25:59 +0200 Subject: [PATCH] ci: add link-heartbeat check Check if links in the documentation are still accurate. Signed-off-by: Benno Lossin --- .github/workflows/ci.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 522b98ef..17303a65 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,7 @@ jobs: with: components: rust-src - run: git config user.name "github-runner" && git config user.email "<>" - - run: git rebase --exec 'cargo doc --no-deps' --root + - run: git rebase --exec 'cargo doc --no-deps' --root clippy: runs-on: ubuntu-latest steps: @@ -195,3 +195,17 @@ jobs: fi false fi + link-heartbeat: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: ${{github.event.pull_request.commits}} + ref: ${{github.event.pull_request.head.sha}} + - uses: dtolnay/rust-toolchain@nightly + - uses: dtolnay/rust-toolchain@nightly + with: + components: rust-src + - run: sudo apt-get install -y linkchecker + - run: git config user.name "github-runner" && git config user.email "<>" + - run: git rebase --exec 'cargo doc --no-deps && linkchecker target/doc/*/*.html' --root