Skip to content

fix: coalesce empty rendered page markers (#157) #567

fix: coalesce empty rendered page markers (#157)

fix: coalesce empty rendered page markers (#157) #567

Workflow file for this run

name: Benchmarks
# Continuous benchmark-regression checking via CodSpeed (free for OSS).
#
# Setup (one-time, by a maintainer): create a CodSpeed account, connect this
# repo via the CodSpeed GitHub App, and add a CODSPEED_TOKEN repo secret. Until
# the secret exists, the CodSpeed step is skipped and the job instead smoke-runs
# the benchmarks so a broken bench still fails CI. Once the secret is set,
# CodSpeed instruments the run and posts a regression report on each PR.
on:
push:
branches: [main]
pull_request:
jobs:
benchmarks:
name: Benchmarks
runs-on: ubuntu-latest
env:
CODSPEED_TOKEN: ${{ secrets.CODSPEED_TOKEN }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version-file: "package.json"
- run: bun install --frozen-lockfile
# Until CodSpeed is connected, just prove the benches still run.
- name: Smoke-run benchmarks
if: env.CODSPEED_TOKEN == ''
run: bun run bench
# CodSpeed instruments under Node; tsx runs the TypeScript bench files
# directly, and the withCodSpeed-wrapped benches report to the action.
- name: CodSpeed regression report
if: env.CODSPEED_TOKEN != ''
uses: CodSpeedHQ/action@1d13896ef15fbc335e350f1356d4762be9bc1df9 # v3
with:
run: npx tsx benchmarks/index.ts
token: ${{ env.CODSPEED_TOKEN }}