v6.0.0 #94
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Benchmarks | |
on: | |
push: | |
branches: | |
- 'main' | |
tags-ignore: | |
- '*.*.*' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
benchmarks: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: | | |
npm install | |
- name: Run benchmark | |
run: npm run test:packages:benchmark > ./benchmarks-${{ matrix.node-version }}.txt | |
- name: Download previous benchmark data | |
uses: actions/cache@v1 | |
with: | |
path: ./cache | |
key: ${{ runner.os }}-benchmark | |
- name: Store benchmark result | |
uses: rhysd/github-action-benchmark@v1 | |
with: | |
name: Benchmark | |
tool: 'benchmarkjs' | |
output-file-path: ./benchmarks-${{ matrix.node-version }}.txt | |
external-data-json-path: ./cache/benchmarks-${{ matrix.node-version }}.json | |
alert-threshold: '105%' | |
fail-on-alert: true | |
# TODO enable | |
comment-on-alert: false | |
auto-push: false | |
benchmark-data-dir-path: ./benchmarks | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
#alert-comment-cc-users: '@willfarrell' |