-
Notifications
You must be signed in to change notification settings - Fork 78
36 lines (32 loc) · 1.18 KB
/
lighthouse-ci.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
name: Lighthouse CI
on:
workflow_dispatch:
pull_request_target:
types: [reopened, opened, synchronize, edited]
env:
NODE_OPTIONS: --max-old-space-size=8192
jobs:
lighthouseci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Setup NodeJS 16
uses: actions/setup-node@v2
with:
node-version: 16
- run: yarn install && npm install -g @lhci/[email protected]
- run: export CI=false && yarn build
- name: run lighthouse action
id: lighthouse-report
run: |
echo "::set-output name=MESSAGE::$(lhci autorun | grep https://storage)"
- name: Create comment
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
- ${{ steps.lighthouse-report.outputs.MESSAGE }}