Skip to content

Commit

Permalink
Created GH workflow for accessibility checks (#957)
Browse files Browse the repository at this point in the history
* Create axe-a11y-check.yml
  • Loading branch information
nwanduka authored Apr 29, 2024
1 parent e45d14f commit 306cf8f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/axe-a11y-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: axe
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
axe:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm install -g http-server
- run: npm run build --if-present
- run: http-server -s &
- name: Run axe
run: |
npm install -g @axe-core/cli
sleep 90
axe http://127.0.0.1:8080 --exit

0 comments on commit 306cf8f

Please sign in to comment.