-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 957 Bytes
/
lighthouse.yml
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
name: Lighthouse CI
on:
push:
branches:
- 'main'
jobs:
lhci:
name: Lighthouse CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 14
- name: Install dependencies and build
run: |
yarn install
yarn build
yarn global add @lhci/cli@0.8.x
- name: Run Lighthouse CI (mobile)
run: |
lhci autorun --config=./lighthouserc-mobile.yml
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
- name: Run Lighthouse CI (desktop)
run: |
lhci autorun --config=./lighthouserc-desktop.yml
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
- name: Create artifact
uses: actions/upload-artifact@v3
with:
name: build-result
path: ./dist