-
Notifications
You must be signed in to change notification settings - Fork 30
48 lines (42 loc) · 1.46 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: DCR Run Lighthouse CI
on:
workflow_dispatch:
jobs:
lhci:
name: DCR Lighthouse
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
group:
- 'http://localhost:9000/Article/https://www.theguardian.com/commentisfree/2020/feb/08/hungary-now-for-the-new-right-what-venezuela-once-was-for-the-left#noads'
- 'http://localhost:9000/Front/https://www.theguardian.com/uk'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node environment
uses: ./.github/actions/setup-node-env
- run: make build
working-directory: dotcom-rendering
- name: Install and run Lighthouse CI
working-directory: dotcom-rendering
env:
LHCI_GITHUB_TOKEN: ${{ secrets.LHCI_GITHUB_TOKEN }}
LHCI_URL: ${{ matrix.group }}
run: |
npm install -g [email protected] @lhci/[email protected]
lhci autorun
# https://github.com/denoland/setup-deno#latest-stable-for-a-major
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Surface Lighthouse Results
run: |
deno run \
--allow-read \
--allow-net=api.github.com \
--allow-env=HOME,GITHUB_TOKEN,GITHUB_EVENT_PATH,LHCI_URL \
scripts/deno/surface-lighthouse-results.ts
env:
LHCI_URL: ${{ matrix.group }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}