-
Notifications
You must be signed in to change notification settings - Fork 5
35 lines (30 loc) · 1.07 KB
/
lighthouse-performance.yml
File metadata and controls
35 lines (30 loc) · 1.07 KB
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 Performance Test
on:
workflow_dispatch:
inputs:
url:
description: "URL to test (default is the GitHub Pages site)"
required: true
default: "https://hack23.github.io/game/"
# Restrict permissions to minimum required
permissions:
contents: read
jobs:
lighthouse:
name: Lighthouse Test
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Audit URLs using Lighthouse
uses: treosh/lighthouse-ci-action@fcd65974f7c4c2bf0ee9d09b84d2489183c29726 # v9
with:
urls: |
${{ github.event.inputs.url }}
budgetPath: ./budget.json # test performance budgets
uploadArtifacts: true # save results as an action artifacts
temporaryPublicStorage: true # upload lighthouse report to the temporary storage