Skip to content
cloud-lightning

GitHub Action

Page Speed Insights

v1.3 Latest version

Page Speed Insights

cloud-lightning

Page Speed Insights

Utilize Google's Page Speed Insights to audit your application

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Page Speed Insights

uses: JakePartusch/psi-action@v1.3

Learn more about this action in JakePartusch/psi-action

Choose a version

Page Speed Insights — A GitHub Action 🏎

This action utilizes Google's Page Speed Insights to generate a report on your website's performance

Example command line output

Inputs

url

Required The name of the site to reach https://google.com

key

Optional - API key (recommended for production) to use when consuming the Page Speed Insights API. This should be stored as a Github Secret. You can request a key here

strategy

Optional — Strategy to use when analyzing the page (mobile/desktop).

threshold

Optional — Score to pass the PageSpeed test. Useful for setting a performance budget (default 70).

Example usage

Basic Usage

steps:
  - name: Running Page Speed Insights
    uses: jakepartusch/psi-action@v1.3
    id: psi
    with:
      url: "https://jake.partus.ch"
      threshold: 70
      strategy: mobile
      key: ${{ secrets.APIKEY }}