Skip to content

Commit e515a13

Browse files
committed
Update link checking
1 parent f387bb7 commit e515a13

File tree

7 files changed

+45
-53
lines changed

7 files changed

+45
-53
lines changed

.github/config/markdown-link-check-config.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/scripts/lychee-config.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Lychee configuration file
2+
# See https://lychee.cli.rs/config/
3+
4+
timeout = 30
5+
retry_wait_time = 5
6+
max_retries = 6
7+
max_concurrency = 4
8+
9+
# Check link anchors
10+
include_fragments = true
11+
12+
exclude = [
13+
"^http://localhost:",
14+
"^http://0.0.0.0:",
15+
]

.github/scripts/markdown-link-check-with-retry.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ jobs:
6565
../gradlew run
6666
6767
# this is not a required check to avoid blocking pull requests if external links break
68-
markdown-link-check:
69-
uses: ./.github/workflows/reusable-markdown-link-check.yml
68+
link-check:
69+
uses: ./.github/workflows/reusable-link-check.yml
7070

7171
required-status-check:
7272
needs:
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Reusable - Link check
2+
3+
on:
4+
workflow_call:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
link-check:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
14+
15+
- name: Setup mise
16+
uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0
17+
18+
- name: Run link check
19+
run: mise run link-check

.github/workflows/reusable-markdown-link-check.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

mise.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[tools]
2+
lychee = "0.18.1"
3+
4+
[tasks.link-check]
5+
run = 'lychee --verbose --config .github/scripts/lychee-config.toml .'
6+
7+
[settings]
8+
# Only install tools explicitly defined in the [tools] section above
9+
idiomatic_version_file_enable_tools = []

0 commit comments

Comments
 (0)