Skip to content

Run codspeed on pull_request event to have better PR reports #240

Run codspeed on pull_request event to have better PR reports

Run codspeed on pull_request event to have better PR reports #240

Workflow file for this run

name: "Benchmark"
on:
push:
branches:
- main
pull_request:
workflow_call:
workflow_dispatch:
jobs:
bench:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/setup-test-env
- name: Run benchmarks
uses: CodSpeedHQ/action@v3
with:
run: node --version && pnpm x bench/all.ts
token: ${{ secrets.CODSPEED_TOKEN }}
no-codspeed-bench:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/setup-test-env
- name: Run benchmarks
shell: bash
run: pnpm x bench/all.ts