Skip to content

feat(site): Templates Site Enhancements - Batch 1 (Infrastructure, SEO, i18n, Analytics) #5

feat(site): Templates Site Enhancements - Batch 1 (Infrastructure, SEO, i18n, Analytics)

feat(site): Templates Site Enhancements - Batch 1 (Infrastructure, SEO, i18n, Analytics) #5

Workflow file for this run

name: Lighthouse CI
on:
pull_request:
paths:
- 'site/**'
push:
branches: [main]
paths:
- 'site/**'
jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: site/pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
working-directory: site
- name: Build site
run: pnpm run build
working-directory: site
env:
SKIP_AI_GENERATION: 'true'
- name: Run Lighthouse CI
uses: treosh/lighthouse-ci-action@v12
with:
uploadArtifacts: true
temporaryPublicStorage: true
configPath: site/lighthouserc.json
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}