Feat/b2b employee management #1472
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: codspeed-benchmarks | |
on: | |
push: | |
branches: | |
- "main" # or "master" | |
paths: | |
- packages/api-**/*.ts | |
pull_request: | |
paths: | |
- packages/api-**/*.ts | |
# `workflow_dispatch` allows CodSpeed to trigger backtest | |
# performance analysis in order to generate initial data. | |
workflow_dispatch: | |
jobs: | |
benchmarks: | |
runs-on: ubuntu-latest | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
steps: | |
- uses: "actions/checkout@v4" | |
- uses: "actions/setup-node@v4" | |
with: | |
node-version: 20 | |
- run: corepack enable | |
- run: pnpm --version | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
cache-dependency-path: "**/pnpm-lock.yaml" | |
- name: install | |
run: pnpm install --frozen-lockfile --prefer-offline | |
- name: Run benchmarks | |
uses: CodSpeedHQ/action@v3 | |
with: | |
run: pnpm run test:bench |