-
Notifications
You must be signed in to change notification settings - Fork 23
/
action.yml
73 lines (73 loc) · 4.11 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: 'Lighthouse Check'
description: 'GitHub Action for running one or multiple Lighthouse audits featuring PR comments, Slack notifications and more!'
inputs:
accessToken:
description: 'Legacy field (use "gitHubAccessToken"): Access token of a user to post PR comments.'
apiToken:
description: 'Legacy field (use "fooApiToken"): The foo.software account API token found in the dashboard.'
author:
description: 'Legacy field (use "gitAuthor"): Used in Slack notifications, linking the authoring user to their GitHub profile. In a GitHub context you could use "github.actor".'
awsAccessKeyId:
description: 'The AWS accessKeyId for an S3 bucket.'
awsBucket:
description: 'The AWS Bucket for an S3 bucket.'
awsRegion:
description: 'The AWS region for an S3 bucket.'
awsSecretAccessKey:
description: 'The AWS secretAccessKey for an S3 bucket.'
branch:
description: 'Legacy field (use "gitBranch"): Used in Slack notifications. In a GitHub context you could use "github.ref".'
commentUrl:
description: "An endpoint to post comments to. This is only needed if you want to trigger comments on 'push'. A 'pull_request' trigger does not require this to be set. Typically this will be from GitHub's API. Example: https://api.github.com/repos/:owner/:repo/commits/:commit_sha/comments."
device:
description: 'The device in which to run Lighthouse (either "desktop" or "mobile")'
emulatedFormFactor:
description: 'Legacy field (use "device): The device in which to run Lighthouse (either "desktop" or "mobile")'
extraHeaders:
description: 'Stringified HTTP Header object key/value pairs to send in requests.'
fooApiToken:
description: 'The foo.software account API token found in the dashboard.'
gitAuthor:
description: "Used in Slack notifications, linking the authoring user to their GitHub profile. In a GitHub context you could use 'github.actor'."
gitBranch:
description: "Used in Slack notifications. In a GitHub context you could use 'github.ref'."
gitHubAccessToken:
description: 'Access token of a user to post PR comments.'
locale:
description: 'A locale for Lighthouse reports. Example: ja'
maxRetries:
description: "The maximum number of times to retry. Note: This is not supported when running against Foo's API as retry logic is already in place."
outputDirectory:
description: 'An absolute directory path to output report. You can do this an an alternative or combined with an S3 upload.'
overridesJsonFile:
description: 'A JSON file with config and option fields to override defaults.'
prCommentEnabled:
description: 'If true and gitHubAccessToken is set scores will be posted as comments.'
prCommentSaveOld:
description: 'If true and PR comment options are set, new comments will be posted on every change vs only updating once comment with most recent scores.'
sha:
description: 'Used in Slack notifications. A git sha.'
slackWebhookUrl:
description: 'A Slack Incoming Webhook URL to send notifications to.'
tag:
description: 'An optional tag or name (example: "build #2" or "v0.0.2").'
throttlingMethod:
description: 'Lighthouse setting only used for local audits. See lighthouse-check NPM module comments for details.'
throttling:
description: 'Lighthouse setting only used for local audits. See lighthouse-check NPM module comments for details.'
timeout:
description: 'Minutes to timeout for remote runs. If "wait" option is "true" (it is by default), we wait for results. If this timeout is met before results are received an error is thrown.'
urls:
description: 'A comma-separated list of URLs (or page API tokens if running remotely).'
urlsJson:
description: 'An alternative way of passing URLs to Lighthouse Check to fulfill more advanced cases in which URLs have commas or you need to associate a URL with a Foo page token.'
verbose:
description: 'If "true", print out steps and results to the console.'
wait:
description: 'If "true", waits for all audit results to be returned, otherwise URLs are only enqueued.'
runs:
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'zap'
color: 'green'