GitLab CI Kotlin DSL • opensavvy.gitlab.ci • Artifacts • accessibility
accessibility¶
fun accessibility(path: String)
Collects accessibility test reports using pa11y to report on the accessibility impact of changes.
GitLab can display the results of one or more accessibility reports in the merge request accessibility widget, helping teams identify and fix accessibility issues.
Example¶
val accessibilityTest by job {
script {
shell("pa11y-ci --sitemap http://localhost:3000/sitemap.xml --reporter json accessibility-report.json")
}
artifacts {
accessibility("accessibility-report.json")
}
}