Skip to content

feat: add isResult, isResultOk, and isResultErr functions (#172) #7

feat: add isResult, isResultOk, and isResultErr functions (#172)

feat: add isResult, isResultOk, and isResultErr functions (#172) #7

Workflow file for this run

name: Benchmark Main Branch
on:
push:
branches: [main]
paths:
- 'src/**/*.ts'
jobs:
benchmark:
name: Run Benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: pnpm
- name: Install dependencies
run: |
# Only install Vitest for the root directory.
echo '{"type":"module","dependencies":{"vitest":"2.0.5"}}' > package.json
pnpm install --no-frozen-lockfile
pnpm install -C scripts/benchmarks
pnpm install -C scripts/radashi-db
- name: Run benchmarks
env:
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }}
run: |
./scripts/benchmarks/node_modules/.bin/tsx ./scripts/benchmarks/ci-bench-main.ts