Skip to content

chadeckles/azure-pipelines-lighthouse

 
 

Repository files navigation

Lighthouse for Azure Pipelines

This is an Azure DevOps extension that allows you to enhance your build and release pipelines with a new Lighthouse tab. The Lighthouse tab embed the HTML report generated by Google Lighthouse.

The extension comes with a task that requires:

  • The URL of the website to analyse,
  • The npm package lighthouse installed on your agent, either locally or globally.

The task also allows you to specify audit rules that can make the pipeline fail based on the audit scores.

For example, the Google Lighthouse audit no-vulnerable-libraries has a boolean score that will be equal to 0 if there are known vulnerabilities within client-side JavaScript libraries and frameworks detected on a web site. In order to make the pipeline fail if this audit score is not equal to 1, you can type:

no-vulnerable-libraries = 1

You can also use the > (greater than) operator to evaluate audit scores that are decimal between 0 and 1.

Screenshots

Lighthouse HTML report embed in a tab

Lighthouse task

Installation

Lighthouse for Azure Pipelines is not yet available on the Visual Studio Marketplace.

Usage

N/A

Compiling

N/A

License

Copyright © 2018, Groupe Sharegate inc. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license at https://github.com/sharegate/azure-pipelines-lighthouse/blob/master/LICENSE.

About

Embed Google Lighthouse HTML reports into Azure Pipelines

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 73.0%
  • HTML 16.3%
  • JavaScript 10.7%