feat: Add a11y tests and GitHub action #445
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 test documentation site | |
on: | |
workflow_dispatch: | |
push: | |
paths-ignore: | |
- 'reports/**' | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
a11y-test: | |
name: A11y test documentation site | |
runs-on: ubuntu-latest | |
container: | |
image: cypress/included:11.2.0 | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2 | |
with: | |
node-version: '18.x' | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
build: npm run build:eleventy | |
start: npm run watch:eleventy |