Lighthouse CI is a set of commands that make continuously running, asserting, saving, and retrieving Lighthouse results as easy as possible.
This extension runs Lighthouse CI as part of your Azure Pipelines.
Read these blog posts for a quick overview of how Lighthouse CI works
Getting Started with Lighthouse CI for Azure Devops
Once the extension is installed, you will see Lighthouse CI task that you can use in build / release pipelines. Below is a screenshot of a sample build pipeline.
Command - Dropdown where you choose one of Collect, Assert, Autorun or Upload.
Configuration File - Path to the Lighthouse CI configuration file.
CLI options - Command Line Arguments used to override options in configuration file.
Artifact to Infer Build Context - Used by the task to override Lighthouse CI's build context for autorun and upload options. You can pretty much leave this blank for other options.
Build Pipelines - When running the tasks inside a build pipeline, the context is inferred from the Git Repo. Any value passed to this input is ignored inside build pipelines.
Release Pipeline - When running the tasks inside a release pipeline, inferring context get slightly tricky. A release can have multiple artifacts of different types and so you have the option of choosing which artifact you would like to infer build context from. Leaving this blank will lead to the primary artifact of the pipeline being chosen as the one from which to infer build context from. If you want to point to a different artifact for this purpose, specify the path to the root folder of the chosen artifact. It usually looks like $(System.DefaultWorkingDirectory)/_my_artifact).
Build Context Override Process
The build context is set using the help of predefined variables from Azure Devops as shown in the table below. Take a look at pre defined Build Variables and Release Variables