-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathaction.yml
52 lines (48 loc) · 1.47 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
name: 'Lighthouse CI Compare Action'
description:
'Compare two Lighthouse CI builds and create an object and a Markdown Table
with the differences.'
author: 'Danilo Velasquez'
# Add your action's branding here. This will appear on the GitHub Marketplace.
branding:
icon: 'check-circle'
color: 'blue'
# Define your inputs here.
inputs:
links-filepath:
description:
'The location of the links.json file generated by Lighthouse CI.'
required: true
default: '.lighthouseci/links.json'
base-url:
description:
'The base URL of your lighthouse ci server, for example
https://your-lhci-server.com/v1.'
required: true
project-id:
description: 'The project ID of your Lighthouse CI project. This is a GUID.'
required: true
current-commit-sha:
description: 'The current commit SHA.'
required: true
should-fail-build:
description:
'Tells the action if it should fail in case of any error or not.'
default: 'false'
# Define your outputs here.
outputs:
markdown:
description: 'The markdown table with the results'
comparedMetrics:
description:
'An object with the results, in case you want to use it for something
else.'
status:
description:
'Set to "success" if the action ran successfully or "failure" if any of
the queries or the markdown generation failed.'
failReason:
description: 'The reason why the action failed, if it did.'
runs:
using: node20
main: dist/index.js