Skip to content

๐Ÿ”ฆ Demo of Lighthouse CI running on Github Actions environment

Notifications You must be signed in to change notification settings

pmicko/lighthouse-ci-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

57 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Lighthouse CI Demo

๐Ÿค” What is it

Companion repo for my demo of Lighthouse CI running on Github Actions environment.

๐Ÿš€ What does it do

  • Provides performance audit after every commit and uploads results as a job artifact.

screenshot

  • Tests performance of app by asserting results with expected min/max values of performance categories. In this example it is 3 metrics:
    • overall score of performance
    • first-contentful-paint
    • first-meaningful-paint
{
  "ci": {
    "assert": {
      "assertions": {
        "first-contentful-paint": ["warn", { "maxNumericValue": 3000 }],
        "first-meaningful-paint": ["warn", { "maxNumericValue": 5000 }],
        "categories:performance": ["warn", { "minScore" : 0.9 }]
      },
      "includePassedAssertions" : false
    }
  }
}

๐Ÿ’ก How does it do

๐Ÿ“ Notes

Tested app is a create-react-app with slightly modified content

About

๐Ÿ”ฆ Demo of Lighthouse CI running on Github Actions environment

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published