Skip to content
Use this GitHub Action with your project

Add this Action to an existing workflow or create a new one.

View on Marketplace
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

GitHub Action for Lighthouse Auditing

Lighthouse Logo

This action integrates Google's helpful Lighthouse audits for webpages β€”Β specifically testing for Performance, Accessibility, Best Practices, SEO, and Progressive Web Apps. Right now, the action will print the five scores (out of 100) to the output and upload HTML and JSON versions of the report as artifacts. In the next release, the action will let you specify thresholds for each test and optionally fail this step if they are not met.

Example HTML report

Example command line output

Example HTML report

Inspired by GoogleChromeLabs/lighthousebot.


workflow.yml Example

The following workflow runs a Lighthouse audit on, shows the five scores in the output of the step, and uploads the .html and .json results as artifacts to download (as shown above).

name: Audit live site
on: push

    runs-on: ubuntu-latest
    - name: Audit live URL
      uses: jakejarvis/lighthouse-action@master
        url: ''
    - name: Upload results as an artifact
      uses: actions/upload-artifact@master
        name: report
        path: './report'

Pull Request Audits with Netlify Deploy Preview

Netlify Logo

This GitHub action integrates with Netlify's Deploy Preview feature, allowing you to test PRs before accepting them. To enable, you need to pass in your Netlify site's URL (on the Netlify subdomain β€”Β also called your "site name" in the Netlify dashboard β€” not your custom domain) to the netlify_site input variable:

name: Audit pull request
on: pull_request

    runs-on: ubuntu-latest
    - name: Audit Netlify deploy preview
      uses: jakejarvis/lighthouse-action@master
        netlify_site: ''
    - uses: actions/upload-artifact@master
        name: report
        path: './report'

Netlify subdomain in dashboard

On pull requests, the PR number will be extracted from the GitHub event data and used to generate the deploy preview URL as follows: https://deploy-preview-[[PR_NUMBER]]--[[NETLIFY_SITE]] You can combine the two above examples and include both url and netlify_site and run on on: [push, pull_request] and the appropriate URL will be automatically selected depending on the type of event.


  • Make CI fail if scores do not meet specified thresholds.
  • Ability to customize flags passed to both Chrome and Lighthouse
  • Batch URL testing


This project is distributed under the MIT license.

License information for bundled third party software can be found in