mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 03:21:05 +00:00
Test out accessibility linter github action
This commit is contained in:
parent
73121eb4f6
commit
8055fa8d8f
1 changed files with 27 additions and 0 deletions
27
.github/workflows/accessibility.yml
vendored
Normal file
27
.github/workflows/accessibility.yml
vendored
Normal 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
|
Loading…
Reference in a new issue