Skip to content

chore(deps-dev): Bump @cloudflare/workers-types from 4.20260519.1 to 5.20260801.1 #113

chore(deps-dev): Bump @cloudflare/workers-types from 4.20260519.1 to 5.20260801.1

chore(deps-dev): Bump @cloudflare/workers-types from 4.20260519.1 to 5.20260801.1 #113

Workflow file for this run

name: CI
on:
push:
branches: [main]
paths-ignore:
- "**.md"
- "docs/**"
- "demo/**"
- "LICENSE"
pull_request:
branches: [main]
paths-ignore:
- "**.md"
- "docs/**"
- "demo/**"
- "LICENSE"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/setup
- run: pnpm run lint
typecheck:
name: Typecheck
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/setup
- run: pnpm run typecheck
generated-types-fresh:
# Catches schema edits where contributors forget to re-run generate:types.
# The generated file is committed (so consumers can grep types in the
# repo); this job makes sure that committed copy still matches the schema.
name: Generated types in sync
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/setup
- run: pnpm run generate:types
- run: |
# Treat both modified-tracked and untracked-but-expected-to-be-tracked
# as failures. `git ls-files --error-unmatch` returns nonzero when
# the file isn't tracked; `git diff --quiet` checks the tracked diff.
if ! git ls-files --error-unmatch src/types.generated.ts >/dev/null 2>&1; then
echo "::error::src/types.generated.ts is not committed. Run 'pnpm run generate:types' and commit the result."
exit 1
fi
if ! git diff --quiet src/types.generated.ts; then
echo "::error::src/types.generated.ts is stale. Run 'pnpm run generate:types' and commit the result."
git --no-pager diff src/types.generated.ts | head -50
exit 1
fi
test:
name: Test (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
node-version: [20, 22, 24]
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/setup
with:
node-version: ${{ matrix.node-version }}
- run: pnpm run test:coverage
- name: Upload coverage to Codecov
if: matrix.node-version == 22
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/lcov.info
fail_ci_if_error: false
test-bun:
name: Test (Bun)
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/setup
- uses: oven-sh/setup-bun@v2
- run: bun --bun run vitest run
test-deno:
name: Smoke (Deno)
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/setup
- run: pnpm run build
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
# Deno can consume the published ESM build directly. We're not running
# the full vitest suite — just confirming the artifacts load + validate.
- run: deno run --allow-read scripts/smoke-deno.ts
smoke-workers:
name: Smoke (Cloudflare Workers build)
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/setup
- run: pnpm run build
# Bundle the standalone validator with esbuild in worker mode. If any
# Node-only API or require() sneaks in, this fails — protecting the
# README's "works in a Worker" claim.
- run: pnpm exec esbuild --bundle --format=esm --platform=neutral --target=es2022 --outfile=/tmp/worker.js scripts/smoke-worker.ts