Skip to content

Commit 09985b7

Browse files
committed
use mise for easier local link checking
1 parent 5d702ed commit 09985b7

File tree

4 files changed

+15
-69
lines changed

4 files changed

+15
-69
lines changed

.github/scripts/dependencies.Dockerfile

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

.github/scripts/link-check.sh

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

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1414
with:
1515
fetch-depth: 0 # needed for merge-base below
16-
16+
- uses: jdx/mise-action@5cb1df66ed5e1fb3c670ea0b62fd17a76979826a # v2.3.1
1717
- name: Link check - relative links (all files)
1818
if: github.event_name == 'pull_request'
1919
env:
2020
GITHUB_TOKEN: ${{ github.token }}
21-
run: ./.github/scripts/link-check.sh --local-links-only
21+
run: mise run lint-local-links
2222

2323
- name: Get modified files
2424
if: github.event_name == 'pull_request'
@@ -36,10 +36,10 @@ jobs:
3636
if: github.event_name == 'pull_request' && steps.modified-files.outputs.files != ''
3737
env:
3838
GITHUB_TOKEN: ${{ github.token }}
39-
run: ./.github/scripts/link-check.sh ${{ steps.modified-files.outputs.files }}
39+
run: mise run lint-links ${{ steps.modified-files.outputs.files }}
4040

4141
- name: Link check - all links (all files)
4242
if: github.event_name != 'pull_request'
4343
env:
4444
GITHUB_TOKEN: ${{ github.token }}
45-
run: ./.github/scripts/link-check.sh
45+
run: mise run lint-links

mise.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[tools]
2+
lychee = "0.18.1"
3+
4+
[tasks.lint-local-links]
5+
run = 'lychee --verbose --scheme file --include-fragments {{arg(name="files", default=".")}}'
6+
7+
[tasks.lint-links]
8+
run = 'lychee --verbose --config .github/scripts/lychee-config.toml {{arg(name="files", default=".")}}'
9+
10+
[settings]
11+
idiomatic_version_file_enable_tools = []

0 commit comments

Comments
 (0)