-
Notifications
You must be signed in to change notification settings - Fork 10
/
action.yml
57 lines (54 loc) · 1.99 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
name: Generate gas diff
author: Rubilmax
description: Easily compare gas reports generated by foundry!
branding:
icon: info
color: purple
inputs:
token:
description: The repository's github token.
default: ${{ github.token }}
required: false
base:
description: The gas diff reference branch name.
default: ${{ github.base_ref || github.ref_name }}
required: false
head:
description: The gas diff target branch name.
default: ${{ github.head_ref || github.ref_name }}
required: false
report:
description: Report freshly generated to compare to reference.
default: gasreport.ansi
required: false
header:
description: The top section displayed in the markdown output.
default: |
# Changes to gas cost
required: false
summaryQuantile:
description: The quantile threshold to filter avg gas cost diffs to display in the summary top section.
default: 0.8
required: false
sortCriteria:
description: The list of criteria to order diff rows by in the report (name | min | avg | median | max | calls), separated by a comma. Must have the same length as sortOrders.
required: false
default: name
sortOrders:
description: The list of directions to order diff rows in the report, according to order criteria (asc | desc), separated by a comma. Must have the same length as sortCriteria.
required: false
default: asc
ignore:
description: The list of contract paths from which to ignore gas reports, separated by a comma.
required: false
match:
description: The list of contract paths of which only to keep gas reports, separated by a comma.
required: false
outputs:
shell:
description: The gas diff between the base gas report and the freshly generated gas report, specifically formatted for shell display
markdown:
description: The gas diff between the base gas report and the freshly generated gas report, specifically formatted for markdown display
runs:
using: node20
main: dist/index.js