Skip to content

Commit c29fd07

Browse files
zeitlingertrask
andauthored
simplify lychee setup and run without docker (#14227)
Co-authored-by: Trask Stalnaker <[email protected]>
1 parent bcb9ea6 commit c29fd07

File tree

5 files changed

+33
-40
lines changed

5 files changed

+33
-40
lines changed
File renamed without changes.

.github/scripts/dependencies.dockerfile

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

.github/scripts/link-check.sh

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

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,18 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
14+
with:
15+
fetch-depth: 0 # needed for merge-base used in lint:links-in-modified-files
1416

15-
- name: Link check
17+
- uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1
18+
19+
- name: Link check - relative links (all files)
20+
if: github.event_name == 'pull_request'
21+
env:
22+
GITHUB_TOKEN: ${{ github.token }}
23+
run: mise run lint:local-links
24+
25+
- name: Link check (modified files only)
1626
env:
1727
GITHUB_TOKEN: ${{ github.token }}
18-
run: ./.github/scripts/link-check.sh
28+
run: mise run lint:links-in-modified-files --base origin/${{ github.base_ref }} --head ${{ github.event.pull_request.head.sha }} --event ${{ github.event_name }}

mise.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[tools]
2+
lychee = "0.20.1"
3+
4+
[settings]
5+
# Only install tools explicitly defined in the [tools] section above
6+
idiomatic_version_file_enable_tools = []
7+
8+
# Windows configuration for file-based tasks
9+
# Based on: https://github.com/jdx/mise/discussions/4461
10+
windows_executable_extensions = ["sh"]
11+
windows_default_file_shell_args = "bash"
12+
use_file_shell_for_executable_tasks = true
13+
14+
[tasks."lint:links"]
15+
file = "https://raw.githubusercontent.com/open-telemetry/opentelemetry-java-contrib/refs/heads/main/.mise/tasks/lint/links.sh"
16+
17+
[tasks."lint:local-links"]
18+
file = "https://raw.githubusercontent.com/open-telemetry/opentelemetry-java-contrib/refs/heads/main/.mise/tasks/lint/local-links.sh"
19+
20+
[tasks."lint:links-in-modified-files"]
21+
file = "https://raw.githubusercontent.com/open-telemetry/opentelemetry-java-contrib/refs/heads/main/.mise/tasks/lint/links-in-modified-files.sh"

0 commit comments

Comments
 (0)