Skip to content

Commit b989ef4

Browse files
GuillaumeLagrangeart049
authored andcommitted
ci: re-follow main version for action to use v4
Enables perf by default on walltime runs, and requires explicit mode.
1 parent 58ca4bb commit b989ef4

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,18 @@ jobs:
6262

6363
- name: Run benchmarks with tinybench-plugin
6464
# use version from `main` branch to always test the latest version, in real projects, use a tag, like `@v2`
65-
uses: CodSpeedHQ/action@v3
65+
uses: CodSpeedHQ/action@main
6666
with:
67+
mode: instrumentation
6768
run: pnpm --filter ${{ matrix.example }} bench-tinybench
6869
env:
6970
CODSPEED_SKIP_UPLOAD: true
7071
CODSPEED_DEBUG: true
7172
- name: Run benchmarks with benchmark.js-plugin
7273
# use version from `main` branch to always test the latest version, in real projects, use a tag, like `@v2`
73-
uses: CodSpeedHQ/action@v3
74+
uses: CodSpeedHQ/action@main
7475
with:
76+
mode: instrumentation
7577
run: pnpm --filter ${{ matrix.example }} bench-benchmark-js
7678
env:
7779
CODSPEED_SKIP_UPLOAD: true

.github/workflows/codspeed.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ jobs:
2525

2626
- name: Run benchmarks
2727
# use version from `main` branch to always test the latest version, in real projects, use a tag, like `@v2`
28-
uses: CodSpeedHQ/action@v3
28+
uses: CodSpeedHQ/action@main
2929
with:
30+
mode: instrumentation
3031
run: |
3132
pnpm moon run tinybench-plugin:bench
3233
pnpm moon run vitest-plugin:bench
@@ -53,8 +54,9 @@ jobs:
5354

5455
- name: Run benchmarks
5556
# use version from `main` branch to always test the latest version, in real projects, use a tag, like `@v2`
56-
uses: CodSpeedHQ/action@v3
57+
uses: CodSpeedHQ/action@main
5758
with:
59+
mode: walltime
5860
run: |
5961
pnpm moon run tinybench-plugin:bench
6062
pnpm moon run vitest-plugin:bench

0 commit comments

Comments
 (0)