From 2f19ecfb02b19db374ec43c8cc053b130cdc1337 Mon Sep 17 00:00:00 2001 From: "Willow (GHOST)" Date: Mon, 1 Jun 2026 04:27:41 +0100 Subject: [PATCH] chore: update benchmark workflow --- .github/workflows/benchmark.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 123abef..cb7fc1e 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -9,28 +9,33 @@ on: # performance analysis in order to generate initial data. workflow_dispatch: -permissions: - contents: read - id-token: write +permissions: {} + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: benchmarks: name: Run benchmarks runs-on: ubuntu-latest - + permissions: + contents: read # clone repo + id-token: write # upload benchmark results to codspeed steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: submodules: true + persist-credentials: false - name: Setup Deno - uses: denoland/setup-deno@v2 + uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2.0.4 with: deno-version: v2.x - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version: 22 @@ -41,7 +46,7 @@ jobs: run: deno install - name: Run benchmarks - uses: CodSpeedHQ/action@v4 + uses: CodSpeedHQ/action@9d332c4d90b43981c3e55ae8e38e68709996240f # v4.17.0 with: mode: simulation # IMPORTANT! deno task bench fails in CI due to incompatible V8 bindings