New feature: Audit website performance with Lighthouse

New feature: Audit website performance with Lighthouse

While lots of people think of CI/CD as something that lets developers deploy software faster and more frequently, let us not forget about its core principle: testing. Without testing, it is impossible to keep high standards of the code which constitutes the website. However, testing does not stop with deployment. Once our application is on the server, it should be constantly monitored for performance. Performance is one of the key factors that determine the position of the website in Google, the difference between life or death in online business.

For this, we can use Lighthouse, an open-source tool allowing developers to run performance audits on their websites. Buddy incorporates this tool as a dedicated action that you can use recurrently for round-the-clock coverage, or after every deployment to check the impact of changes on the website.

The action can be found in the Performance & App Monitoring section of the action roster, or simply by typing its name in the search input:

Image loading...Lighthouse location

The action lets you select the website's URL, the device from which it's accessed (mobile, desktop, or both), and the minimum value for four Lightouse-specific metrics the website needs to score: Performance, Accessibility, Best Practices, and SEO.

Image loading...Action details

If one or more values score below the required level, the action will fail and throw the error in the logs:

Image loading...Action logs

Use Case #1: Continuous auditing

With Buddy you can configure a pipeline in recurrent mode that will automatically audit the website, for example, once a day:

Image loading...Pipeline settings

With the triggering mode configured, you can set up the Lighthouse action, and some notifications that will keep you awake in case the performance drops. Make sure to add them in the On failed section of the pipeline:

Image loading...Recurrent auditing pipeline

Use Case #2: Post-deployment auditing

Another use case is running the audit immediately after the deployment. This is useful if you want to be aware of your updates improving or decreasing the Lighthouse score (although it might take some time for Google to index the changes). In this case, simply add the action at the end of the pipeline after the deployment action.

Tip
A good idea is to use a monitoring service like Datadog or Sentry for detailed information and statistics on the website's performance and condition.

Image loading...Deployment & monitoring pipeline

Warning
Buddy is 100% customer-driven. If there’s a feature or integration you miss, let us know in the comments below or directly at support@buddy.works.
Jarek Dylewski

Jarek Dylewski

Customer Support

A journalist and an SEO specialist trying to find himself in the unforgiving world of coders. Gamer, a non-fiction literature fan and obsessive carnivore. Jarek uses his talents to convert the programming lingo into a cohesive and approachable narration.

Dec 4th 2019
Share