Skip to content

Check 508 Compliance #8

Check 508 Compliance

Check 508 Compliance #8

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 npm
uses: actions/setup-node@v4
with:
node-version: '6'
- 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