add lighthouse CI checks for core features

Signed-off-by: Emma Indal <emma.indahl@gmail.com>
This commit is contained in:
Emma Indal
2023-04-13 16:49:26 +02:00
parent cb807e097a
commit 383f90e788
4 changed files with 104 additions and 0 deletions
@@ -0,0 +1,29 @@
name: Verify Accessibility Core features
on:
pull_request:
branches: [master]
paths:
- 'plugins/catalog/**'
- 'plugins/techdocs/**'
- 'plugins/scaffolder/**'
- 'plugins/search/**'
jobs:
lhci:
name: Lighthouse
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: install dependencies
run: |
yarn install
- name: run Lighthouse CI
run: |
npm install -g @lhci/cli@0.11.x
lhci autorun
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}