-
Notifications
You must be signed in to change notification settings - Fork 15
37 lines (34 loc) · 1008 Bytes
/
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
name: Benchmark
on:
push:
pull_request:
workflow_dispatch:
jobs:
benchmark:
name: Performance regression check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 14
check-latest: true
- name: 'Install dependencies'
run: yarn install
- name: Build code
run: yarn transpile && yarn build:node-release
- name: 'Run benchmark'
run: yarn benchmark:node
# Run benchmark action
- name: Compare benchmark results
uses: rhysd/[email protected]
with:
name: Parcel sourcemap benchmark
tool: 'benchmarkjs'
output-file-path: bench.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
benchmark-data-dir-path: public/bench
comment-always: true
max-items-in-chart: 1000
auto-push: ${{ github.ref == 'refs/heads/master' }}