Skip to content

Add pa11y-ci action

Add pa11y-ci action #6

Workflow file for this run

name: '♿ Pa11y'
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v3
with:
node-version: 20
- name: npm install, build
run: |
npm install
npm run build
- name: Run pa11y-ci.
run: npm run pa11y-ci:sitemap 2>&1 | tee pa11y_output.txt
- name: Read pa11y_output file.
id: pa11y_output
uses: juliangruber/read-file-action@v1
with:
path: ./pa11y_output.txt
- name: Comment PR
uses: thollander/[email protected]
with:
message: |
Hello world ! :wave: