Skip to content

ci: run axe WCAG a11y gate in the Pages deploy #9

ci: run axe WCAG a11y gate in the Pages deploy

ci: run axe WCAG a11y gate in the Pages deploy #9

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- name: Install
run: npm ci
- name: Typecheck
run: npm run typecheck
- name: Test (round-trip · Theorem 1 · full attack)
run: npm test
- name: Build
run: npm run build
- name: Install Playwright browser
run: npx playwright install --with-deps chromium
- name: Accessibility gate (axe-core, WCAG A/AA)
run: npm run test:a11y
- name: Upload artifact
uses: actions/upload-pages-artifact@v5
with:
path: dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5