跳到主要内容

Lighthouse with YAML

List of YAML parameters and examples for the "Lighthouse" action.

YAML parameters for Lighthouse

名称类型描述
action
必填
StringThe ID of the action.
type
必填
StringThe type of the action. Should be set to LIGHTHOUSE.
website
必填
StringThe address of the site on which the audit should run.
device
必填
StringThe device on which the audit will be run. Can be one of mobile, desktop and mobileDesktop.
performance
必填
IntegerValues from 0 to 100 are accepted. The action returns an error if the score is below the values that are set.
accessibility
必填
IntegerValues from 0 to 100 are accepted. The action returns an error if the score is below the values that are set.
best_practices
必填
IntegerValues from 0 to 100 are accepted. The action returns an error if the score is below the values that are set.
seo
必填
IntegerValues from 0 to 100 are accepted. The action returns an error if the score is below the values that are set.

YAML example for Lighthouse

actions:
- action: "Lighthouse"
type: "LIGHTHOUSE"
device: "mobile"
website: "https://buddy.works/"
performance: 50
accessibility: 50
best_practices: 50
seo: 50