-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathaction.yml
36 lines (36 loc) · 1.05 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
name: 'Bundle size diff'
author: 'Nejc Zdovc'
description: 'Report webpack bundle size change in the PR'
inputs:
base_path:
description: 'Path to base stats file'
required: true
pr_path:
description: 'Path to PR stats file'
required: true
excluded_assets:
description: 'Regex that will exclude some assets'
required: false
outputs:
success:
description: 'Reports back success, boolean as string'
base_file_size:
description: 'Bundle size of base branch that you are targeting in the PR in bytes'
base_file_string:
description: 'Formatted bundle size of base branch'
pr_file_size:
description: 'Bundle size of PR branch in bytes'
pr_file_string:
description: 'Formatted bundle size of pr branch'
diff_file_size:
description: 'Diff size of compared branches in bytes'
diff_file_string:
description: 'Formatted diff size between branches'
percent:
description: 'Diff size of compared presented in percentage'
branding:
icon: bar-chart-2
color: orange
runs:
using: 'node12'
main: 'dist/index.js'