Skip to content

Commit 479f9bd

Browse files
authored
Merge pull request #46 from Rust-for-Linux/dev/dead-link-check
ci: add link-heartbeat check
2 parents ac70ff7 + 2d88846 commit 479f9bd

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)