Skip to content

Merge pull request #1061 from emma646620-lgtm/feat/issue-837-add-infi… #648

Merge pull request #1061 from emma646620-lgtm/feat/issue-837-add-infi…

Merge pull request #1061 from emma646620-lgtm/feat/issue-837-add-infi… #648

Workflow file for this run

name: Lighthouse CI
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: './frontend/package-lock.json'
- name: Install dependencies
working-directory: ./frontend
run: npm ci
- name: Build frontend
working-directory: ./frontend
run: npm run build
- name: Run Lighthouse CI
uses: treosh/lighthouse-ci-action@v11
with:
configPath: './frontend/lighthouserc.json'
uploadArtifacts: true
temporaryPublicStorage: true
runs: 3