An open API service indexing awesome lists of open source software.

https://github.com/jakepartusch/psi-action

A GitHub action that utilizes Google's Page Speed Insights to generate a performance report
https://github.com/jakepartusch/psi-action

Last synced: 4 months ago
JSON representation

A GitHub action that utilizes Google's Page Speed Insights to generate a performance report

Awesome Lists containing this project

README

        

# Page Speed Insights — A GitHub Action 🏎

This action utilizes [Google's Page Speed Insights](https://developers.google.com/speed/docs/insights/v5/about) 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](https://docs.github.com/en/actions/reference/encrypted-secrets). You can request a key [here](https://developers.google.com/speed/docs/insights/v5/get-started)

### `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

```yaml
steps:
- name: Running Page Speed Insights
uses: jakepartusch/[email protected]
id: psi
with:
url: "https://jake.partus.ch"
threshold: 70
strategy: mobile
key: ${{ secrets.APIKEY }}
```