-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.12 KB
/
lighthouse-mobile.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
36
37
name: Lighthouse Mobile
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Install
run: |
yarn install --frozen-lockfile
- name: Build
run: |
yarn run build
env:
GITHUB_PRIVATEKEY: ${{ secrets.PRIVATEKEY }}
GITHUB_APPID: ${{ secrets.APPID }}
GITHUB_INSTALLATIONID: ${{ secrets.INSTALLATIONID }}
- name: Waiting for 200 from the Netlify Preview
uses: kamranayub/[email protected]
id: wait-for-netflify-preview
with:
site_name: "elated-hoover-5c29bf"
env:
NETLIFY_TOKEN: ${{secrets.NETLIFY_TOKEN}}
- name: Lighthouse CI
run: |
yarn global add @lhci/[email protected]
lhci autorun --upload.target=temporary-public-storage --collect.url=${{ steps.wait-for-netflify-preview.outputs.url }} || echo "LHCI failed!"
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}