122 lines
2.8 KiB
YAML
122 lines
2.8 KiB
YAML
name: Quality & Validation
|
||
|
||
# Runs comprehensive quality checks on all PRs:
|
||
# - Prettier (formatting)
|
||
# - ESLint (linting)
|
||
# - markdownlint (markdown quality)
|
||
# - Schema validation (YAML structure)
|
||
# - Agent schema tests (fixture-based validation)
|
||
# - Installation component tests (compilation)
|
||
# - Bundle validation (web bundle integrity)
|
||
|
||
"on":
|
||
pull_request:
|
||
branches: ["**"]
|
||
workflow_dispatch:
|
||
|
||
jobs:
|
||
prettier:
|
||
if: false # disabled – workflow disabled for fork
|
||
runs-on: ubuntu-latest
|
||
steps:
|
||
- name: Checkout
|
||
uses: actions/checkout@v4
|
||
|
||
- name: Setup Node
|
||
uses: actions/setup-node@v4
|
||
with:
|
||
node-version-file: ".nvmrc"
|
||
cache: "npm"
|
||
|
||
- name: Install dependencies
|
||
run: npm ci
|
||
|
||
- name: Prettier format check
|
||
run: npm run format:check
|
||
|
||
eslint:
|
||
if: false # disabled – workflow disabled for fork
|
||
runs-on: ubuntu-latest
|
||
steps:
|
||
- name: Checkout
|
||
uses: actions/checkout@v4
|
||
|
||
- name: Setup Node
|
||
uses: actions/setup-node@v4
|
||
with:
|
||
node-version-file: ".nvmrc"
|
||
cache: "npm"
|
||
|
||
- name: Install dependencies
|
||
run: npm ci
|
||
|
||
- name: ESLint
|
||
run: npm run lint
|
||
|
||
markdownlint:
|
||
if: false # disabled – workflow disabled for fork
|
||
runs-on: ubuntu-latest
|
||
steps:
|
||
- name: Checkout
|
||
uses: actions/checkout@v4
|
||
|
||
- name: Setup Node
|
||
uses: actions/setup-node@v4
|
||
with:
|
||
node-version-file: ".nvmrc"
|
||
cache: "npm"
|
||
|
||
- name: Install dependencies
|
||
run: npm ci
|
||
|
||
- name: markdownlint
|
||
run: npm run lint:md
|
||
|
||
docs:
|
||
if: false # disabled – workflow disabled for fork
|
||
runs-on: ubuntu-latest
|
||
steps:
|
||
- name: Checkout
|
||
uses: actions/checkout@v4
|
||
|
||
- name: Setup Node
|
||
uses: actions/setup-node@v4
|
||
with:
|
||
node-version-file: ".nvmrc"
|
||
cache: "npm"
|
||
|
||
- name: Install dependencies
|
||
run: npm ci
|
||
|
||
- name: Build documentation
|
||
# Note: build-docs.mjs runs link validation internally before building
|
||
run: npm run docs:build
|
||
|
||
validate:
|
||
if: false # disabled – workflow disabled for fork
|
||
runs-on: ubuntu-latest
|
||
steps:
|
||
- name: Checkout
|
||
uses: actions/checkout@v4
|
||
|
||
- name: Setup Node
|
||
uses: actions/setup-node@v4
|
||
with:
|
||
node-version-file: ".nvmrc"
|
||
cache: "npm"
|
||
|
||
- name: Install dependencies
|
||
run: npm ci
|
||
|
||
- name: Validate YAML schemas
|
||
run: npm run validate:schemas
|
||
|
||
- name: Run agent schema validation tests
|
||
run: npm run test:schemas
|
||
|
||
- name: Test agent compilation components
|
||
run: npm run test:install
|
||
|
||
- name: Validate file references
|
||
run: npm run validate:refs
|