-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 765 Bytes
/
Copy pathlighthouse.yml
File metadata and controls
39 lines (31 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Lighthouse CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
concurrency:
group: lighthouse-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
lighthouse:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'npm'
- name: Install
run: npm ci --no-audit --no-fund
- name: Build
run: npm run build
env:
NEXT_PUBLIC_SITE_URL: https://example.com
- name: Run Lighthouse CI
run: npx --no-install lhci autorun
env:
LHCI_BUILD_CONTEXT__CURRENT_HASH: ${{ github.sha }}