Skip to content

test: add benchmark with vitest + codspeed #1

test: add benchmark with vitest + codspeed

test: add benchmark with vitest + codspeed #1

Workflow file for this run

name: benchmark
on:
push:
branches:
- main
pull_request:
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Run benchmarks
uses: CodSpeedHQ/action@v2
with:
run: pnpm vitest bench
# token retrieved from the CodSpeed app at the previous step
token: ${{ secrets.CODSPEED_TOKEN }}