Skip to content

Add automated WCAG 2.2 accessibility checks (axe) for learn's public pages in CI #1131

Open

Description

@A1L13N

Context

The GSoC 2027 starter idea "Accessibility audit to WCAG 2.2 AA" needs a baseline, and today nothing checks accessibility automatically: .github/workflows/project-checks.yml only runs py_compile and a wrangler deploy --dry-run for Worker projects. learn's pages are server-rendered from learn/public/*.html through base.html, so they can be scanned once wrangler dev --local is running with the local D1 schema.

Several pages are being restyled right now, so start in report-only mode: list violations without failing the build.

What to do

  • Add a CI job (or a script under learn/scripts/) that starts npx wrangler dev --local, applies schema.sql to the local D1, and runs @axe-core/cli or pa11y-ci against about 10 core public URLs (/, /about, /activity, /login, /teach, /gsoc, /status, /privacy, /terms, /404).
  • Use WCAG 2.2 AA rule tags (wcag2a, wcag2aa, wcag21aa, wcag22aa).
  • Upload the report as a workflow artifact and print a short summary (violations per page) in the job log.
  • Document how to run it locally in learn/README.md.

Acceptance criteria

  • The job runs on PRs that touch learn/ and produces a report artifact.
  • It is non-blocking (continue-on-error or report-only) for now, with a TODO for making it blocking.
  • README explains the local command.

Files

  • .github/workflows/project-checks.yml
  • learn/scripts/ (new a11y script)
  • learn/README.md

Helpful links

Part of GSoC 2027 onboarding — see https://gsoc.alphaonelabs.com

Activity

  1. added
    help wanted
    project: learn
    gsoc-2027
    on Nov 2, 2026
  2. github-actions commented on Nov 2, 2026

    @github-actions
  3. reopened this on Nov 2, 2026
  4. added
    2026-11
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    2026-11accessibilitygood first issuegsoc-2027help wantedproject: learn

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions