-
Notifications
You must be signed in to change notification settings - Fork 53
39 lines (37 loc) · 999 Bytes
/
codspeed.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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