Skip to content

ThewApp/speedlify-actions

Repository files navigation

Speedlify + GitHub Actions

This repository demonstrates how you can configure GitHub Actions workflow to continuously measure your website Lighthouse score by using speedlify + GitHub actions for free. Then you can deploy to any static hosting. Read more in my blog post.

Motivations

@zachleat has an instruction on how to deploy speedlify to Netlify in speedlify repository. However, Netlify free plan has only 300 minutes build time per month with a maximum of 15 minutes for each build. These can become a limit on the number of websites and frequency that you can monitor.

By using the workflow in this repository, you will have an unlimited build time in public repository or a 2000 minutes build time per month in private repository for free. Thanks to GitHub Actions.

Usage

  1. Get this workflow by one of these:

    Do not fork as GitHub Actions will not run on a forked repository.

  2. Delete or skip the initial _data/sites/*.js files

  3. Create your own file with a list of your own site URLs

  4. Commit and push to your repository

Deploy to GitHub Pages

There is another workflow file in this repository that automatically deploy speedlify to GitHub Pages. Demo site only have data on default site and Static Site Generator.

Would like to deploy to other hosting providers? Have a look at an example that deploys to Vercel.

About speedlify

After you make a fast web site, keep it fast by measuring it over time. Read Use Speedlify to Continuously Measure Site Performance. Created by @zachleat.