ci(links): lychee-action을 v2.9.0으로 올려 --root-dir을 읽게 한다
문제: main의 links job이 run 52·63·79 모두 `lychee: unexpected argument '--root-dir'`로 실패한다. 고정한 lychee-action v2.0.2는 lychee v0.16.1을 받는데, 그 버전에는 --root-dir이 없다. 상대 경로 --root-dir은 lychee v0.22.0부터 읽는다. 고른 방법: action을 v2.9.0(lychee v0.24.2, 2026-07-09)의 커밋 SHA로 올린다. Gitea의 job token은 lychee가 보낼 GitHub 쪽에서 의미가 없어 token을 비우고, Gitea에 없는 job summary를 끈다. DeveloperExperienceContractTest가 고정한 SHA를 함께 바꾼다. 버린 대안: v2.0.2에 lycheeVersion만 새로 주기. v2.0.2의 내려받기 경로는 lychee 0.16 이전의 자산 이름을 쓴다. 위험·한계: 새 lychee가 전보다 많은 외부 링크를 깨졌다고 볼 수 있다. 그러면 링크를 고치거나 .lycheeignore에 이유와 함께 넣는다. 검증: runner main 수동 실행의 links job(이 PR 본문에 적는다).
This commit is contained in:
@@ -84,9 +84,14 @@ jobs:
|
|||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
steps:
|
steps:
|
||||||
- uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # actions/checkout@v4.2.2
|
- uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # actions/checkout@v4.2.2
|
||||||
|
# v2.9.0 runs lychee v0.24.2. v2.0.2 ran v0.16.1, which has no --root-dir at all; a relative
|
||||||
|
# --root-dir works from lychee v0.22.0. The job token is this Gitea's and means nothing to the
|
||||||
|
# GitHub hosts lychee would send it to, so none is passed, and Gitea has no job summary page.
|
||||||
- name: Check committed documentation links
|
- name: Check committed documentation links
|
||||||
uses: https://github.com/lycheeverse/lychee-action@7cd0af4c74a61395d455af97419279d86aafaede # lycheeverse/lychee-action@v2.0.2
|
uses: https://github.com/lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # lycheeverse/lychee-action@v2.9.0
|
||||||
with:
|
with:
|
||||||
|
token: ""
|
||||||
|
jobSummary: false
|
||||||
args: >-
|
args: >-
|
||||||
--no-progress
|
--no-progress
|
||||||
--root-dir .
|
--root-dir .
|
||||||
|
|||||||
+1
-1
@@ -170,7 +170,7 @@ class DeveloperExperienceContractTest {
|
|||||||
.as("a conditional link check is one nobody sees run")
|
.as("a conditional link check is one nobody sees run")
|
||||||
.isFalse();
|
.isFalse();
|
||||||
assertThat(String.valueOf(lycheeStep.get("uses")))
|
assertThat(String.valueOf(lycheeStep.get("uses")))
|
||||||
.endsWith("lycheeverse/lychee-action@7cd0af4c74a61395d455af97419279d86aafaede");
|
.endsWith("lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8");
|
||||||
Map<?, ?> with = requireMap(lycheeStep, "with");
|
Map<?, ?> with = requireMap(lycheeStep, "with");
|
||||||
assertThat(with.get("fail")).isEqualTo(true);
|
assertThat(with.get("fail")).isEqualTo(true);
|
||||||
assertThat(shellWords(requireString(with, "args")))
|
assertThat(shellWords(requireString(with, "args")))
|
||||||
|
|||||||
Reference in New Issue
Block a user