Skip to content

Commit 97fb259

Browse files
authored
Merge pull request #1083 from camicroscope/a11y-warn-no-fail
test a11y test as warn not fail
2 parents eb5dcee + 67ced4b commit 97fb259

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/axe-a11y-check.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: axe
2+
23
on:
34
push:
45
branches:
@@ -8,6 +9,7 @@ on:
89
branches:
910
- master
1011
- develop
12+
1113
jobs:
1214
axe:
1315
runs-on: ubuntu-latest
@@ -27,7 +29,12 @@ jobs:
2729
- name: Install specific version of ChromeDriver
2830
run: npm install -g chromedriver@125
2931
- name: Run axe
32+
id: axe-test
3033
run: |
3134
npm install -g @axe-core/cli
3235
sleep 90
33-
axe http://127.0.0.1:8080 --chromedriver-path $(npm root -g)/chromedriver/bin/chromedriver --exit
36+
axe http://127.0.0.1:8080 --chromedriver-path $(npm root -g)/chromedriver/bin/chromedriver --exit || echo "status=warning" >> $GITHUB_ENV
37+
38+
- name: Set output status to warning (if test fails)
39+
if: env.status == 'warning'
40+
run: echo "::warning::Accessibility tests failed, but this does not block (most) PRs."

0 commit comments

Comments
 (0)