Files
sporel-tool-ci/.gitea/workflows/reusable-docs.yml
Axel Meyer 7c4eb9e3b2 ci(docs): replace apt-get nodejs/npm with actions/setup-node@v4
apt-get pulled ~250 Ubuntu node-* packages (~20+ min, flaky-network on
sporel-meta runs #206 cancelled, #209 took >15min just downloading).
Switch to actions/setup-node@v4 — single tarball, ~30s.

Note: sporel-engine pins this workflow to a specific SHA so it's
unaffected; sporel-meta uses @master and benefits immediately.
2026-05-04 17:26:24 +02:00

46 lines
1.2 KiB
YAML

# Reusable workflow: Meta / Docs / Tool (Cat 5 per ADR-0025)
# Markdown lint + internal link check
name: Docs CI
on:
workflow_call:
inputs:
lint_paths:
description: "Glob of paths to lint"
type: string
default: "**/*.md"
ignore_paths:
description: "Glob of paths to skip (e.g. archive)"
type: string
default: "**/archive/**"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install markdownlint-cli2
run: npm install -g markdownlint-cli2
- name: Run markdownlint
run: |
markdownlint-cli2 "${{ inputs.lint_paths }}" "!${{ inputs.ignore_paths }}" || \
(echo "::warning::markdown lint warnings (non-blocking)" && true)
- name: Internal link check (lychee)
uses: lycheeverse/lychee-action@v2
with:
args: --offline --no-progress --include-fragments "**/*.md" --exclude-path "**/archive/**"
fail: true
- name: README presence (root)
run: |
test -s README.md || (echo "::warning::no README.md at repo root" && true)