Skip to content

Instantly share code, notes, and snippets.

@dainemawer
Created April 5, 2022 05:34
Show Gist options
  • Save dainemawer/8d4d615cf1096ac1a6f58f6bc701c82b to your computer and use it in GitHub Desktop.
Save dainemawer/8d4d615cf1096ac1a6f58f6bc701c82b to your computer and use it in GitHub Desktop.
Github Lighthouse CLI Config
name: Lighthouse CI
on: push
jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Audit URLs using Lighthouse
uses: treosh/lighthouse-ci-action@v9
with:
urls: |
https://example.com/
https://example.com/blog
budgetPath: ./budget.json # test performance budgets
uploadArtifacts: true # save results as an action artifacts
temporaryPublicStorage: true # upload lighthouse report to the temporary storage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment