Run codspeed on pull_request
event to have better PR reports
#240
Workflow file for this run
This file contains hidden or 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: "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 |