super-productivity/.github/workflows/lighthouse-ci.yml
Johannes Millan e271e130e6 Revert "build: try to fix lighthouse 2"
This reverts commit 562251e2d5.
2025-10-29 19:40:18 +01:00

43 lines
1,023 B
YAML

name: Lighthouse CI
on:
pull_request:
branches:
- master
- main
workflow_dispatch:
inputs: {}
release:
types: [published]
jobs:
lighthouse:
runs-on: ubuntu-latest
env:
UNSPLASH_KEY: ${{ secrets.UNSPLASH_KEY }}
UNSPLASH_CLIENT_ID: ${{ secrets.UNSPLASH_CLIENT_ID }}
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm i
- run: npm run env # Generate env.generated.ts
- name: Build production web app
run: npm run buildFrontend:prodWeb
- name: Run Lighthouse CI
uses: treosh/lighthouse-ci-action@v12
with:
# Configure Lighthouse CI
configPath: './tools/lighthouse/.lighthouserc.json'
# Upload results to temporary storage
uploadArtifacts: true
temporaryPublicStorage: true
# Run 3 times for consistency
runs: 3