-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (32 loc) · 1006 Bytes
/
a11ywatch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: ♿️ A11Y CI with a11ywatch
on:
pull_request:
paths:
- '**/.github/workflows/axe-core.yml'
- '.github/workflows/generate-site-preview.yml'
- 'src/**/*'
- 'package.json'
- 'package-lock.json'
- 'gatsby-*.js'
- '.nvmrc'
env:
WEBSITE_TO_AUDIT: 'https://process-analytics-process-analytics-dev-site_preview-pr-${{ github.event.pull_request.number }}.surge.sh/'
jobs:
a11ywatch-CLI:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# Using the Web Accessibility Evaluation GitHub Action
# @see https://github.com/marketplace/actions/web-accessibility-evaluation
- uses: a11ywatch/[email protected]
with:
WEBSITE_URL: ${{ env.WEBSITE_TO_AUDIT }}
SUBDOMAINS: true
TLD: false
SITEMAP: true
FAIL_ERRORS_COUNT: 2
LIST: true
FIX: false
UPGRADE: false
TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}