Skip to content

test: add component a11y unit tests (jest-axe) #2

test: add component a11y unit tests (jest-axe)

test: add component a11y unit tests (jest-axe) #2

Workflow file for this run

name: Run Frontend A11y Unit Tests
on:
pull_request:
paths:
- "src/frontend/**"
workflow_call:
inputs:
ref:
description: "(Optional) ref to checkout"
required: false
type: string
workflow_dispatch:
inputs:
ref:
description: "(Optional) ref to checkout"
required: false
type: string
env:
NODE_VERSION: "22"
jobs:
a11y-unit-tests:
name: Frontend A11y Unit Tests (jest-axe)
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
steps:
- name: Checkout Repository
uses: actions/checkout@v6
with:
ref: ${{ inputs.ref || github.ref }}
- name: Setup Node.js Environment
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
cache: "npm"
cache-dependency-path: ./src/frontend/package-lock.json
# Known-gap tests fail by design until the corresponding component
# fixes land (see a11y-test-usage.md). This check is informational:
# it documents the open a11y backlog without blocking regular CI,
# which excludes *.a11y.test.* files.
- name: Run Frontend A11y Unit Tests
run: make test_frontend_a11y_ci
- name: Publish A11y Test Results
uses: mikepenz/action-junit-report@v5
if: always()
with:
report_paths: "src/frontend/test-results/junit.xml"
check_name: "Frontend A11y Unit Test Results"
fail_on_failure: false
require_tests: true