Skip to content

Commit 2f19ecf

Browse files
committed
chore: update benchmark workflow
1 parent 07ea00b commit 2f19ecf

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

.github/workflows/benchmark.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,33 @@ on:
99
# performance analysis in order to generate initial data.
1010
workflow_dispatch:
1111

12-
permissions:
13-
contents: read
14-
id-token: write
12+
permissions: {}
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
1517

1618
jobs:
1719
benchmarks:
1820
name: Run benchmarks
1921
runs-on: ubuntu-latest
20-
22+
permissions:
23+
contents: read # clone repo
24+
id-token: write # upload benchmark results to codspeed
2125
steps:
2226
- name: Checkout
23-
uses: actions/checkout@v4
27+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2428
with:
2529
submodules: true
30+
persist-credentials: false
2631

2732
- name: Setup Deno
28-
uses: denoland/setup-deno@v2
33+
uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2.0.4
2934
with:
3035
deno-version: v2.x
3136

3237
- name: Setup Node
33-
uses: actions/setup-node@v4
38+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
3439
with:
3540
node-version: 22
3641

@@ -41,7 +46,7 @@ jobs:
4146
run: deno install
4247

4348
- name: Run benchmarks
44-
uses: CodSpeedHQ/action@v4
49+
uses: CodSpeedHQ/action@9d332c4d90b43981c3e55ae8e38e68709996240f # v4.17.0
4550
with:
4651
mode: simulation
4752
# IMPORTANT! deno task bench fails in CI due to incompatible V8 bindings

0 commit comments

Comments
 (0)