Skip to content

Merge pull request #1766 from veg/develop #308

Merge pull request #1766 from veg/develop

Merge pull request #1766 from veg/develop #308

Workflow file for this run

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'