From 5fbb8dd34f623149d7230279737f7d949f59816c Mon Sep 17 00:00:00 2001 From: Robbert Broersma Date: Wed, 22 May 2024 21:10:12 +0200 Subject: [PATCH] ci: add WCAG JSON publication GitHub Action workflow --- .github/workflows/wcag.yaml | 33 ++++++++ apps/pdc-frontend/wcag-evaluation.json | 103 +++++++++++++++++++++++++ 2 files changed, 136 insertions(+) create mode 100644 .github/workflows/wcag.yaml create mode 100644 apps/pdc-frontend/wcag-evaluation.json diff --git a/.github/workflows/wcag.yaml b/.github/workflows/wcag.yaml new file mode 100644 index 00000000..954e153c --- /dev/null +++ b/.github/workflows/wcag.yaml @@ -0,0 +1,33 @@ +name: GitHub Issues as WCAG result + +on: + issues: + types: + - opened + - closed + - reopened + - labelled + - unlabelled + push: + branches: + - main + +jobs: + publish-wcag-result: + runs-on: ubuntu-latest + + steps: + - name: Checkout branch + uses: actions/checkout@v4 + + - name: Include GitHub Issues as WCAG result + uses: frameless/wcag-issues-action@latest + with: + website: https://loket.digitaal.utrecht.nl/ + label-color: D93F0B + owner: frameless + repo: strapi + input: apps/pdc-frontend/wcag-evaluation.json + create-labels: true + create-artifact: true + token: ${{ secrets.GH_ISSUES_TOKEN }} diff --git a/apps/pdc-frontend/wcag-evaluation.json b/apps/pdc-frontend/wcag-evaluation.json new file mode 100644 index 00000000..43835730 --- /dev/null +++ b/apps/pdc-frontend/wcag-evaluation.json @@ -0,0 +1,103 @@ +{ + "@context": { + "reporter": "http://github.com/w3c/wai-wcag-em-report-tool/", + "wcagem": "http://www.w3.org/TR/WCAG-EM/#", + "Evaluation": "wcagem:procedure", + "defineScope": "wcagem:step1", + "scope": "wcagem:step1a", + "step1b": { "@id": "wcagem:step1b", "@type": "@id" }, + "conformanceTarget": "step1b", + "accessibilitySupportBaseline": "wcagem:step1c", + "additionalEvaluationRequirements": "wcagem:step1d", + "exploreTarget": "wcagem:step2", + "essentialFunctionality": "wcagem:step2b", + "pageTypeVariety": "wcagem:step2c", + "technologiesReliedUpon": "wcagem:step2d", + "selectSample": "wcagem:step3", + "structuredSample": "wcagem:step3a", + "randomSample": "wcagem:step3b", + "Website": "wcagem:website", + "Webpage": "wcagem:webpage", + "auditSample": "wcagem:step4", + "reportFindings": "wcagem:step5", + "documentSteps": "wcagem:step5a", + "commissioner": "wcagem:commissioner", + "evaluator": "wcagem:evaluator", + "evaluationSpecifics": "wcagem:step5b", + "WCAG": "http://www.w3.org/TR/WCAG/#", + "WCAG20": "http://www.w3.org/TR/WCAG20/#", + "WCAG21": "http://www.w3.org/TR/WCAG21/#", + "WAI": "http://www.w3.org/WAI/", + "A": "WAI:WCAG2A-Conformance", + "AA": "WAI:WCAG2AA-Conformance", + "AAA": "WAI:WCAG2AAA-Conformance", + "wcagVersion": "WAI:standards-guidelines/wcag/#versions", + "reportToolVersion": "wcagem:reportToolVersion", + "earl": "http://www.w3.org/ns/earl#", + "Assertion": "earl:Assertion", + "TestMode": "earl:TestMode", + "TestCriterion": "earl:TestCriterion", + "TestCase": "earl:TestCase", + "TestRequirement": "earl:TestRequirement", + "TestSubject": "earl:TestSubject", + "TestResult": "earl:TestResult", + "OutcomeValue": "earl:OutcomeValue", + "Pass": "earl:Pass", + "Fail": "earl:Fail", + "CannotTell": "earl:CannotTell", + "NotApplicable": "earl:NotApplicable", + "NotTested": "earl:NotTested", + "assertedBy": "earl:assertedBy", + "mode": "earl:mode", + "result": "earl:result", + "subject": "earl:subject", + "test": "earl:test", + "outcome": "earl:outcome", + "dcterms": "http://purl.org/dc/terms/", + "title": "dcterms:title", + "description": "dcterms:description", + "summary": "dcterms:summary", + "date": "dcterms:date", + "hasPart": "dcterms:hasPart", + "isPartOf": "dcterms:isPartOf", + "id": "@id", + "type": "@type", + "language": "@language" + }, + "language": "en", + "type": "Evaluation", + "reportToolVersion": "3.0.3", + "defineScope": { + "id": "_:defineScope", + "scope": { + "description": "De website van het Digitaal Loket van gemeente Utrecht, op loket.digitaal.utrecht.nl", + "title": "Digitaal Loket van gemeente Utrecht" + }, + "conformanceTarget": "AA", + "accessibilitySupportBaseline": "", + "additionalEvaluationRequirements": "", + "wcagVersion": "2.1" + }, + "exploreTarget": { + "id": "_:exploreTarget", + "essentialFunctionality": "", + "pageTypeVariety": "", + "technologiesReliedUpon": ["HTML", "CSS", "WAI-ARIA", "JavaScript", "SVG"] + }, + "selectSample": {}, + "auditSample": [], + "reportFindings": { + "date": { "type": "http://www.w3.org/TR/NOTE-datetime", "@value": "2024-05-15" }, + "summary": "", + "title": "Audit toegankelijkheid Digitaal Loket gemeente Utrecht", + "commissioner": "Frameless B.V.", + "evaluator": "Savi", + "documentSteps": [ + { "id": "_:about" }, + { "id": "_:defineScope" }, + { "id": "_:exploreTarget" }, + { "id": "_:selectSample" } + ], + "evaluationSpecifics": "" + } +}