Skip to content

Update github actions #165

Update github actions

Update github actions #165

Workflow file for this run

name: codspeed-benchmarks
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: '20.15.1'
- run: npm ci
- run: npm run build
- name: Run benchmarks
uses: CodSpeedHQ/action@fa1dcde8d58f2ab0b407a6a24d6cc5a8c1444a8c # v3.1.0
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: 'node ./dist/__tests__/benchmarks/index.bench.js'