Skip to content

Setup lighthouse

Setup lighthouse #1

Workflow file for this run

name: Lighthouse
on:
pull_request:
jobs:
client-e2e-tests:
runs-on: ubuntu-latest
env:
LANDBOT_CONFIG_URL: ${{ secrets.LANDBOT_CONFIG_URL }}
PUBLIC_BORIS_CMS_URL: ${{ secrets.PUBLIC_BORIS_CMS_URL }}
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build -w client
- run: npm run preview -w client
- run: npm run lighthouse -w client