From ea9c3563389375fb21101f3367c87013dce54ddd Mon Sep 17 00:00:00 2001 From: "codspeed-hq[bot]" <117304815+codspeed-hq[bot]@users.noreply.github.com> Date: Wed, 13 May 2026 02:31:18 +0000 Subject: [PATCH] Update CodSpeed workflow to v4 with OIDC auth and add badge --- .github/workflows/codspeed.yml | 10 ++++++++-- README.md | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml index 6208c20..d65cb02 100644 --- a/.github/workflows/codspeed.yml +++ b/.github/workflows/codspeed.yml @@ -4,8 +4,14 @@ on: push: branches: [master, main] pull_request: + # `workflow_dispatch` allows CodSpeed to trigger backtest + # performance analysis in order to generate initial data. workflow_dispatch: +permissions: + contents: read + id-token: write + jobs: benchmarks: name: Run benchmarks @@ -25,9 +31,9 @@ jobs: - run: pnpm install - name: Run benchmarks under CodSpeed - uses: CodSpeedHQ/action@v3 + uses: CodSpeedHQ/action@v4 with: + mode: simulation run: pnpm vitest bench --run --config vitest.bench.config.ts - token: ${{ secrets.CODSPEED_TOKEN }} env: NODE_ENV: production diff --git a/README.md b/README.md index 7874907..24ce2ca 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # intervaltree JS +[![CodSpeed](https://img.shields.io/endpoint?url=https://codspeed.io/badge.json)](https://codspeed.io/hexsprite/intervaltree?utm_source=badge) + A mutable, self-balancing interval tree for JavaScript/TypeScript. Written in TypeScript with no external dependencies. Uses an augmented AVL tree under the hood for O(log n) operations.