Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/config/lychee.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Lychee configuration file
# See https://lychee.cli.rs/config/

timeout = 30
retry_wait_time = 5
max_retries = 6
max_concurrency = 4

# Check link anchors
include_fragments = true
Comment on lines +8 to +10
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Check link anchors
include_fragments = true

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gh link checks are not supported - see open-telemetry/opentelemetry-java-contrib#2208 (comment)


exclude = [
"^http://localhost:",
"^http://0.0.0.0:",
]
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ jobs:
exit 1
fi

markdown-link-check:
link-check:
# release branches are excluded to avoid unnecessary maintenance
if: ${{ !startsWith(github.ref_name, 'release/') }}
uses: ./.github/workflows/reusable-markdown-link-check.yml
uses: ./.github/workflows/reusable-link-check.yml

misspell-check:
# release branches are excluded to avoid unnecessary maintenance
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/reusable-link-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Reusable - Link check

on:
workflow_call:

permissions:
contents: read

jobs:
link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Setup mise
uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0

- name: Run link check
run: mise run link-check
23 changes: 0 additions & 23 deletions .github/workflows/reusable-markdown-link-check.yml

This file was deleted.

9 changes: 9 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[tools]
lychee = "0.18.1"

[tasks.link-check]
run = 'lychee --verbose --config .github/config/lychee.toml .'

[settings]
# Only install tools explicitly defined in the [tools] section above
idiomatic_version_file_enable_tools = []