From ff626b0ba0f05a37bcf30a6e8d9158632fec9d59 Mon Sep 17 00:00:00 2001 From: Kyle Sexton <153232337+kyle-sexton@users.noreply.github.com> Date: Sun, 11 Oct 2026 02:08:32 -0400 Subject: [PATCH] ci: run the offline lychee link check Add an `Offline links` lane that runs the pinned ci-workflows lychee-offline composite against the synced lychee.toml, and feed it into ci-status so a broken local link or anchor fails the gate. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/pr-require-checks.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr-require-checks.yml b/.github/workflows/pr-require-checks.yml index c7f327d..f27021d 100644 --- a/.github/workflows/pr-require-checks.yml +++ b/.github/workflows/pr-require-checks.yml @@ -3,10 +3,10 @@ name: pr-require-checks # Consumer-side gate for the org ci-gate ruleset: `ci-status` is one of the four # required contexts, and it is only meaningful when it aggregates real lanes. # This repository has no build and no package manager, so the lanes are the -# checkable content it does carry: the two shell scripts and the two JSON -# manifests. The root config files synced from melodic-software/standards are -# validated by their own tooling upstream and are deliberately not re-linted -# here. +# checkable content it does carry: the two shell scripts, the two JSON +# manifests, and the local links and anchors in its markdown. The root config +# files synced from melodic-software/standards are validated by their own +# tooling upstream and are deliberately not re-linted here. on: push: @@ -104,8 +104,23 @@ jobs: jq empty .claude/settings.json jq empty .cursor/environment.json + lychee: + name: Offline links + if: ${{ !(github.event.pull_request.head.repo.full_name == github.repository && (contains(fromJSON('["labeled","unlabeled"]'), github.event.action) || (github.event.action == 'edited' && !github.event.changes.base))) }} + runs-on: ubuntu-24.04 + timeout-minutes: 15 + steps: + - name: Check out + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Check local links and anchors + uses: melodic-software/ci-workflows/.github/actions/lychee-offline@594987abe8657a40bccc13d301f1f0d5cccb5348 # v0.39.8 + with: + config: lychee.toml + ci-status: - needs: [check-scripts-and-manifests] + needs: [check-scripts-and-manifests, lychee] if: ${{ !cancelled() }} runs-on: ubuntu-24.04 # No run waits for another: with `yield-to-full-run` a contract-only run