-
Notifications
You must be signed in to change notification settings - Fork 69
41 lines (40 loc) · 1.43 KB
/
benchmark.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
name: Benchmark
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
benchmark:
name: Run Javascript Benchmark
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Run benchmark
run:
sudo apt-get update;
sudo apt-get install nodejs -y;
npm i --save benchmark;
npm i --save underscore;
npm install --no-optional;
cmake .;
make -j all;
node bench.js | tee output.txt;
git stash save;
git config --local user.email "[email protected]";
git config --local user.name "GitHub Action";
- name: Store benchmark result
uses: veg/github-action-benchmark@v1
with:
name: Benchmark.js Benchmark
tool: 'benchmarkjsInverse'
output-file-path: ./output.txt
# Use personal access token instead of GITHUB_TOKEN due to https://github.community/t5/GitHub-Actions/Github-action-not-triggering-gh-pages-upon-push/td-p/26869/highlight/false
github-token: ${{ secrets.benchmark }}
auto-push: true
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@klevitz'