File tree Expand file tree Collapse file tree 4 files changed +309
-4
lines changed Expand file tree Collapse file tree 4 files changed +309
-4
lines changed Original file line number Diff line number Diff line change 1+ name : CodSpeed Benchmarks
2+
3+ on :
4+ push :
5+ branches :
6+ - main # or "master"
7+ pull_request :
8+ # `workflow_dispatch` allows CodSpeed to trigger backtest
9+ # performance analysis in order to generate initial data.
10+ workflow_dispatch :
11+
12+ jobs :
13+ benchmarks :
14+ name : Run benchmarks
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - name : setup pnpm
20+ uses : pnpm/action-setup@v4
21+
22+ - name : setup node
23+ uses : actions/setup-node@v4
24+ with :
25+ node-version : lts/*
26+
27+ - name : install dependencies
28+ run : pnpm install --frozen-lockfile
29+
30+ - name : build
31+ run : pnpm build
32+
33+ - name : run the benchmarks
34+ uses : CodSpeedHQ/action@v4
35+ with :
36+ mode : instrumentation
37+ run : pnpm -w bench
Original file line number Diff line number Diff line change 3737 },
3838 "devDependencies" : {
3939 "@clack/prompts" : " catalog:" ,
40+ "@codspeed/vitest-plugin" : " ^5.0.1" ,
4041 "@deviltea/eslint-config" : " catalog:" ,
4142 "@deviltea/tsconfig" : " catalog:" ,
4243 "@types/node" : " catalog:" ,
You can’t perform that action at this time.
0 commit comments