[POC] Add workflows for accessibility #33
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ♿️ A11Y CI with a11ytester-action | |
on: | |
pull_request: | |
paths: | |
- '**/.github/workflows/axe-core.yml' | |
- '.github/workflows/generate-site-preview.yml' | |
- 'src/**/*' | |
- 'package.json' | |
- 'package-lock.json' | |
- 'gatsby-*.js' | |
- '.nvmrc' | |
env: | |
WEBSITE_TO_AUDIT: 'https://process-analytics-process-analytics-dev-site_preview-pr-${{ github.event.pull_request.number }}.surge.sh/' | |
jobs: | |
a11ytester-action-CLI: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# Using the a11ytester-action GitHub Action | |
# @see https://github.com/marketplace/actions/a11ytester-action | |
- name: a11ytester | |
uses: mikaelvesavuori/[email protected] | |
with: | |
urls: ${{ env.WEBSITE_TO_AUDIT }} |