- a11y.yml: validate ARIA attributes in js/*.js instead of deleted game.js - a11y.yml: syntax-check all js/*.js files instead of single game.js - a11y.yml: drop aria-valuenow check (not used in current codebase) - smoke.yml: exclude guardrails scripts from secret scan (self-referential false positive)
30 lines
878 B
YAML
30 lines
878 B
YAML
name: Accessibility Checks
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
a11y-audit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Validate ARIA Attributes in JS
|
|
run: |
|
|
echo "Checking js/*.js for ARIA attributes..."
|
|
grep -rq "aria-label" js/ || (echo "ERROR: aria-label missing from js/" && exit 1)
|
|
grep -rq "aria-pressed" js/ || (echo "ERROR: aria-pressed missing from js/" && exit 1)
|
|
|
|
- name: Validate ARIA Roles in index.html
|
|
run: |
|
|
echo "Checking index.html for ARIA roles..."
|
|
grep -q "role=" index.html || (echo "ERROR: No ARIA roles found in index.html" && exit 1)
|
|
|
|
- name: Syntax Check JS
|
|
run: |
|
|
for f in js/*.js; do
|
|
echo "Syntax check: $f"
|
|
node -c "$f" || exit 1
|
|
done
|