Skip to content

v6.0.0

v6.0.0 #77

Workflow file for this run

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'