Lighthouse Performance Test #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | |
with: | |
egress-policy: audit | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Audit URLs using Lighthouse | |
uses: treosh/lighthouse-ci-action@2f8dda6cf4de7d73b29853c3f29e73a01e297bd8 # 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 |