-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (32 loc) · 1.15 KB
/
check_508_compliance.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Check 508 Compliance
on:
workflow_dispatch:
inputs:
target_host:
description: Check where?
required: true
default: 'https://stage.dpc.cms.gov'
type: choice
options:
- 'https://stage.dpc.cms.gov'
- 'https://dpc.cms.gov'
jobs:
compliance_check:
name: Compliance Check
runs-on: self-hosted
steps:
- name: install axe cli
run: |
npm install @axe-core/cli -g
- name: Run Axe Check
env:
TARGET_BASE_URL: ${{ inputs.target_host || 'https://stage.dpc.cms.gov' }}
run: |
TARGETS_TO_SCAN="${TARGET_BASE_URL}"
TARGETS_TO_SCAN="${TARGETS_TO_SCAN}, ${TARGET_BASE_URL}/faq.html"
TARGETS_TO_SCAN="${TARGETS_TO_SCAN}, ${TARGET_BASE_URL}/data.html"
TARGETS_TO_SCAN="${TARGETS_TO_SCAN}, ${TARGET_BASE_URL}/pilot.html"
TARGETS_TO_SCAN="${TARGETS_TO_SCAN}, ${TARGET_BASE_URL}/docsV1.html"
TARGETS_TO_SCAN="${TARGETS_TO_SCAN}, ${TARGET_BASE_URL}/docsV2.html"
TARGETS_TO_SCAN="${TARGETS_TO_SCAN}, ${TARGET_BASE_URL}/updates.html"
axe $TARGETS_TO_SCAN --exit