Skip to content

Update github actions #193

Update github actions

Update github actions #193

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@513a19673a831f139e8717bf45ead67e47f00044 # v3.2.0
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: 'node ./dist/__tests__/benchmarks/index.bench.js'