[Snyk] Security upgrade wait-on from 6.0.0 to 7.2.0 #13
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: pa11y | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
workflow_dispatch: | |
jobs: | |
pa11y: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js 14 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
- name: Checkout PR branch | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Serve the site | |
run: | | |
npm i | |
npm run serve | |
- name: A11y test | |
run: | | |
npm run a11y | |
- name: Commit report | |
if: ${{ always() }} | |
run: | | |
git config user.name "Automated" | |
git config user.email "[email protected]" | |
git add . | |
timestamp=$(date -u) | |
git commit -m "Accessibility report: ${timestamp}" || exit 0 | |
git push |