Skip to content

Commit

Permalink
fix: update lighthouse
Browse files Browse the repository at this point in the history
  • Loading branch information
tommm2 committed Mar 26, 2024
1 parent cec7020 commit f2aa69e
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
name: Lighthouse
name: LIGHTHOUSE CI
on: [push]

jobs:
lighthouseci:
lhci:
name: Lighthouse
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
ref: ${{ github.event.pull_request.head.sha }}

- name: Install pnpm
run: npm install -g pnpm
- run: pnpm install && pnpm add -g @lhci/cli@0.13.x
- run: pnpm run build
- run: lhci autorun
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x

- name: npm install, build
run: |
npm install
npm run build
- name: run Lighthouse CI
run: |
npm install -g @lhci/cli@0.13.x
lhci autorun
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}

0 comments on commit f2aa69e

Please sign in to comment.