-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (33 loc) · 1.03 KB
/
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
name: Lighthouse CI
on: [pull_request]
jobs:
lhci:
name: Generate Lighthouse Report
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: NodeJS Setup
uses: actions/setup-node@v4
with:
node-version: 18
- name: Check dependencies & build
run: |
yarn install
yarn build
- name: Run Lighthouse CI
id: step_lhci
run: yarn dlx @lhci/cli autorun
env:
LHCI_TOKEN: ${{ secrets.LHCI_TOKEN }}
LHCI_USERNAME: ${{ secrets.LHCI_USERNAME }}
LHCI_PASSWORD: ${{ secrets.LHCI_PASSWORD }}
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
- name: Post Link to Lighthouse Report
uses: thollander/actions-comment-pull-request@v2
with:
comment_tag: lighthouse
message: |
Check out your Lighthouse Report: https://lighthouse.hybus.app/app/projects/hybus-production/dashboard
mode: recreate