Skip to content

Lighthouse Action

Lighthouse Action #10

Workflow file for this run

name: Lighthouse Action
run-name: Lighthouse Action
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lhci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 9
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 22
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Install LightHouse CI
run: pnpm add -g @lhci/cli
- name: Build app
run: pnpm run build
- name: run Lighthouse CI
run: lhci autorun
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}