Skip to content

Added pa11y and lighthouse a11y testing to workflows #7

Added pa11y and lighthouse a11y testing to workflows

Added pa11y and lighthouse a11y testing to workflows #7

Workflow file for this run

name: lighthouse
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
lighthouse:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.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 Lighthouse
run: |
npm install && npm install -g @lhci/[email protected]
lhci autorun