Skip to content

fix(ci): exclude root-relative VitePress paths from lychee #3

fix(ci): exclude root-relative VitePress paths from lychee

fix(ci): exclude root-relative VitePress paths from lychee #3

Workflow file for this run

# .github/workflows/lychee.yml
name: lychee dead-link check
on:
pull_request:
paths:
- 'docs/**'
- '.github/workflows/lychee.yml'
- 'lychee.toml'
push:
branches: [DEV]
paths:
- 'docs/**'
- 'lychee.toml'
jobs:
linkChecker:
runs-on: ubuntu-latest
timeout-minutes: 10 # L-01: bound runaway link checks
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v5
- name: lychee link check (source markdown — external URLs only)
uses: lycheeverse/lychee-action@v2
with:
# Scope to source markdown only. VitePress validates internal links
# at build time; lychee here catches external/dead URLs in prose.
# Self-referential /progress-platform/... paths are excluded via
# lychee.toml since they're VitePress build-output artifacts, not
# author-written links.
args: >-
--no-progress
--include-fragments
--config "${{ github.workspace }}/lychee.toml"
"docs/**/*.md"
fail: true
jobSummary: true