Files
miracles_in_motion/.github/workflows/validate.yml
T
defiQUGandCursor d00ab4cbaf Fix test suite teardown and gate CI on tests plus header WCAG audit.
Repair Navigation and HeroSection assertions, stop deleting window.location in jsdom setup, and add validate/a11y-live GitHub workflows with type-check and test:ci scripts.

Co-authored-by: Cursor <[email protected]>
2026-06-15 19:29:33 -07:00

69 lines
1.3 KiB
YAML

name: Validate
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_call:
concurrency:
group: validate-${{ github.ref }}
cancel-in-progress: true
jobs:
test-and-a11y:
name: Tests + header WCAG audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm
- name: Install dependencies
run: npm ci
- name: Type check
run: npm run type-check
- name: Run unit tests
run: npm run test:ci
- name: Header WCAG contrast audit (token pairs)
run: npm run a11y:header-audit
build:
name: Production build
runs-on: ubuntu-latest
needs: test-and-a11y
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm
- name: Install ImageMagick (brand asset prebuild)
run: sudo apt-get update && sudo apt-get install -y imagemagick
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Upload dist artifact
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
if-no-files-found: error