Audit automatique axe-coreaxe-core automated audit
Détecter automatiquement toute violation d'accessibilité critique ou sérieuse sur l'ensemble des pages générées, et bloquer les commits qui en introduisent de nouvelles.Automatically detect any critical or serious accessibility violation across all generated pages, and block commits that introduce new ones.
Flux du pipelinePipeline flow
01 · Déclencheur01 · Trigger
Composants ou interface modifiésComponents or interface modified
components/ · site/build.js · tokens/ — tout changement pouvant impacter l'accessibilité.components/ · site/build.js · tokens/ — any change that may impact accessibility.
02 · Audit02 · Audit
Scan toutes pages via axe-coreScan all pages via axe-core
node scripts/axe-audit.js — scanne site/dist/**. Violations critiques/sérieuses → exit 1 (si AXE_BLOCKING=true).node scripts/axe-audit.js — scans site/dist/**. Critical/serious violations → exit 1 (if AXE_BLOCKING=true).
03 · Transition03 · Transition
0 violation — bascule en bloquant0 violations — switching to blocking
76 violations résorbées lors du burn-down (2026-06-06). Retirer AXE_BLOCKING=false du workflow pour activer le mode strict.76 violations resolved during burn-down (2026-06-06). Remove AXE_BLOCKING=false from workflow to enable strict mode.
Valeur métierBusiness value
76 violations initiales → 0. L'audit axe-core a été lancé avec un burn-down complet avant toute ouverture. La bascule en bloquant est imminente — le système ne laisse aucune régression d'accessibilité s'accumuler.76 initial violations → 0. The axe-core audit was launched with a complete burn-down before any opening. The switch to blocking is imminent — the system lets no accessibility regression accumulate.
Matrice de déclenchementTrigger matrix
| Fichier modifiéChanged file | ActionAction |
|---|---|
components/agtc-*.js | Oui — audit axe sur le composantYes — axe audit on component |
site/build.js (CSS) | Oui — impact potentiel accessibilitéYes — potential accessibility impact |
tokens/ (couleurs) | Oui — contraste potentiellement impactéYes — contrast potentially impacted |
ContrôlesChecks
- node scripts/axe-audit.js exit 0 sur toutes les pagesnode scripts/axe-audit.js exit 0 on all pages
- Aucune violation de niveau critical ou seriousNo critical or serious level violations
- Rapport complet disponible dans axe-report.jsonFull report available in axe-report.json
- Logotype exclu de l'audit contraste (exempt WCAG 1.4.3)Logotype excluded from contrast audit (exempt WCAG 1.4.3)
- 0 violation active depuis le burn-down du 2026-06-060 active violations since burn-down of 2026-06-06
CommandeCommand
npm run axe
# ou : node scripts/axe-audit.js
# Rapport → axe-report.json
# CI : .github/workflows/axe.yml (artefact uploadé)