Skip to content

Rename

Rename #325

Workflow file for this run

name: Lighthouse
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
cache-dependency-path: package.json
- name: Install dependencies
run: |
pnpm install
pnpm add @lhci/cli
- name: Build site
run: pnpm build
env:
VITE_CONTENTFUL_SPACE_ID: ${{ secrets.VITE_CONTENTFUL_SPACE_ID }}
VITE_CONTENTFUL_ACCESS_TOKEN: ${{ secrets.VITE_CONTENTFUL_ACCESS_TOKEN }}
# needed to avoid Error: missing Airtable API key, got undefined
VITE_AIRTABLE_API_KEY: ${{ secrets.VITE_AIRTABLE_API_KEY }}
VITE_ALGOLIA_APP_ID: ${{ secrets.VITE_ALGOLIA_APP_ID }}
VITE_ALGOLIA_SEARCH_KEY: ${{ secrets.VITE_ALGOLIA_SEARCH_KEY }}
- name: Run Lighthouse
run: pnpm lhci autorun
# configure https://github.com/apps/lighthouse-ci for this repo
# to display Lighthouse results below PRs
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}