Files
KNELContracts/.gitea/workflows/lint.yaml
T
tsgstaff-coo-svpknel 2bd0eea138
lint / markdownlint (blocking) (pull_request) Waiting to run
lint / typos spell-check (blocking) (pull_request) Waiting to run
lint / vale prose (advisory) (pull_request) Waiting to run
lint / lychee link-check (advisory) (pull_request) Waiting to run
v0.1: Grav-only repo + CI lint + branch-preview architecture
Pipeline fully retired: src/, contract-inputs/, service-csv/ deleted;
their content is fully superseded by grav/user/pages (verified section
by section). New: gitea actions lint workflow (markdownlint + typos
blocking, vale prose + lychee links advisory), lint configs, README
documents the branch/PR model, docs/branch-previews.md is the LAMP +
wildcard + Git Sync runbook for <branch>.contract.knownelement.com.
Blocking checks verified green before push (pinned containers).

Ticket: https://projects.knownelement.com/issues/924
2026-09-09 12:46:07 -05:00

61 lines
1.7 KiB
YAML

name: lint
on:
pull_request:
push:
branches: [main, v0.1]
jobs:
markdownlint:
name: markdownlint (blocking)
runs-on: ubuntu-latest
container: node:20-bookworm
steps:
- uses: actions/checkout@v4
- name: Lint all markdown
run: npx -y markdownlint-cli@0.41.0 --config .markdownlint.yaml '**/*.md'
typos:
name: typos spell-check (blocking)
runs-on: ubuntu-latest
container: node:20-bookworm
steps:
- uses: actions/checkout@v4
- name: Install typos (pinned v1.50.1)
run: >
curl -fsSL
https://github.com/crate-ci/typos/releases/download/v1.50.1/typos-v1.50.1-x86_64-unknown-linux-musl.tar.gz
| tar -xz
- name: Run typos
run: ./typos --config .typos.toml
vale:
name: vale prose (advisory)
runs-on: ubuntu-latest
container: node:20-bookworm
continue-on-error: true
steps:
- uses: actions/checkout@v4
- name: Install vale (pinned v3.20.0)
run: >
curl -fsSL
https://github.com/vale-cli/vale/releases/download/v3.20.0/vale_3.20.0_Linux_64-bit.tar.gz
| tar -xz
- name: Fetch styles and lint prose
run: ./vale sync && ./vale --minAlertLevel=suggestion .
lychee:
name: lychee link-check (advisory)
runs-on: ubuntu-latest
container: node:20-bookworm
continue-on-error: true
steps:
- uses: actions/checkout@v4
- name: Install lychee (pinned v0.20.0)
run: >
curl -fsSL
https://github.com/lycheeverse/lychee/releases/download/v0.20.0/lychee-x86_64-unknown-linux-musl.tar.gz
| tar -xz
- name: Check links in content
run: ./lychee --no-progress './grav/**/*.md' README.md docs/*.md