From 8055fa8d8fcf1eba7f29ed0960d9b735e6e0470b Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 21 Aug 2021 09:03:15 -0700 Subject: [PATCH] Test out accessibility linter github action --- .github/workflows/accessibility.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/accessibility.yml diff --git a/.github/workflows/accessibility.yml b/.github/workflows/accessibility.yml new file mode 100644 index 000000000..5c5c0921d --- /dev/null +++ b/.github/workflows/accessibility.yml @@ -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