Skip to content

Commit

Permalink
set appropriate triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
jdettmannnava committed Dec 17, 2024
1 parent 4eed8ef commit cb8ff5c
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/check_508_compliance.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
name: Check 508 Compliance

on:
push:
paths:
- .github/workflows/check_508_compliance.yml
schedule:
- cron: 17 8 * * 1
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: ubuntu-latest
runs-on: self-hosted
steps:
- name: Run Axe Check
env:
TARGET_BASE_URL: 'https://dpc.cms.gov'
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"
Expand All @@ -21,6 +30,5 @@ jobs:
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"
echo $TARGETS_TO_SCAN
docker run --init --rm --cap-add=SYS_ADMIN orenfromberg/axe-puppeteer-ci:1.0.0@sha256:f83527a3ae8ab74088c001abfe44836946ba73f0afbbf460447f8a0c40281e70 $TARGETS_TO_SCAN

0 comments on commit cb8ff5c

Please sign in to comment.