Test out accessibility linter github action

This commit is contained in:
Mouse Reeve 2021-08-21 09:03:15 -07:00
parent 73121eb4f6
commit 8055fa8d8f

27
.github/workflows/accessibility.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: Accessibility Validation
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Scan for accessibility issues
uses: microsoft/accessibility-insights-action@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
site-dir: ${{ github.workspace }}/bookwyrm/templates
scan-url-relative-path: / # use // if windows agen
- name: Upload report artifact
uses: actions/upload-artifact@v2
with:
name: accessibility-reports
path: ${{ github.workspace }}/_accessibility-reports