fix(ci): exclude root-relative VitePress paths from lychee #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .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 |