Skip to content

Commit d5fd94f

Browse files
committed
First release
1 parent a9b13df commit d5fd94f

File tree

347 files changed

+85263
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

347 files changed

+85263
-0
lines changed

action.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: 'Continuous Benchmark'
2+
author: 'rhysd <https://rhysd.github.io>'
3+
description: 'Continuous Benchmark using GitHub pages as dash board for keeping performance'
4+
branding:
5+
icon: 'fast-forward'
6+
color: 'blue'
7+
8+
inputs:
9+
name:
10+
description: 'Name of the benchmark. This value must be identical among all benchmarks'
11+
required: true
12+
default: 'Benchmark'
13+
tool:
14+
description: 'Tool to use get benchmark output. One of "cargo", "go", "benchmarkjs", "pytest"'
15+
required: true
16+
output-file-path:
17+
description: 'A path to file which contains the benchmark output'
18+
required: true
19+
gh-pages-branch:
20+
description: 'Branch for gh-pages'
21+
required: true
22+
default: 'gh-pages'
23+
benchmark-data-dir-path:
24+
description: 'Path to directory which contains benchmark files on GitHub pages branch'
25+
required: true
26+
default: 'dev/bench'
27+
github-token:
28+
description: 'GitHub API token to pull/push GitHub pages branch and deploy GitHub pages. For public repository, this must be personal access token for now. Please read README.md for more details'
29+
required: false
30+
auto-push:
31+
description: 'Push GitHub Pages branch to remote automatically. This option requires github-token input'
32+
required: false
33+
default: false
34+
skip-fetch-gh-pages:
35+
description: 'Skip pulling GitHub Pages branch before generating an auto commit'
36+
required: false
37+
default: false
38+
comment-always:
39+
description: 'Leave a comment with benchmark result comparison. To enable this feature, github-token input must be given as well'
40+
required: false
41+
default: false
42+
save-data-file:
43+
description: 'Save the benchmark data to external file'
44+
required: false
45+
default: true
46+
comment-on-alert:
47+
description: 'Leave an alert comment when current benchmark result is worse than previous. Threshold is specified with alert-comment-threshold input. To enable this feature, github-token input must be given as well'
48+
required: false
49+
default: false
50+
alert-threshold:
51+
description: 'Threshold which determines if an alert should happen or not. Percentage value such as "150%". For example, 150% means that an alert happens when current benchmark result is 1.5x worse than previous'
52+
required: false
53+
default: '200%'
54+
fail-on-alert:
55+
description: 'Workflow fails when alert comment happens'
56+
required: false
57+
# Note: Set to false by default since this action does not push to remote by default. When workflow
58+
# fails and auto-push is not set, there is no chance to push the result to remote.
59+
default: false
60+
fail-threshold:
61+
description: 'Threshold which determines if the current workflow fails. Format is the same as alert-threshold input. If this value is not specified, the same value as alert-threshold is used'
62+
required: false
63+
alert-comment-cc-users:
64+
description: 'Comma separated GitHub user names which start with @ (e.g. "@foo,@bar"). They will be mentioned in commit comment for alert.'
65+
required: false
66+
external-data-json-path:
67+
description: 'JSON data file for storing benchmark results. When this input is set, github-action-benchmark no longer uses Git branch to store data. Instead, it reads and appends benchmark data from/to the file. User must store the file anywhere'
68+
required: false
69+
max-items-in-chart:
70+
description: 'Max data points in a benchmark chart to avoid making the chart too busy. Value must be unsigned integer. No limit by default'
71+
required: false
72+
73+
runs:
74+
using: 'node12'
75+
main: 'src/index.js'

node_modules/.package-lock.json

Lines changed: 198 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@actions/core/LICENSE.md

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)