mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-02 22:00:19 +00:00
The original bunfig.toml used `line` and `function` (singular) which Bun silently ignores. The correct field names are `lines` and `functions` (plural). Changes: - Fix field names: line→lines, function→functions - Set thresholds: lines=0.35 (floor: digitalocean.ts 38.5%), functions=0.5 (floor: preload.ts 50%) - Add coverageSkipTestFiles=true - Keep --coverage in CI (bunfig thresholds enforce exit code on failure) Co-authored-by: Claude <claude@anthropic.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: L <6723574+louisgv@users.noreply.github.com>
45 lines
862 B
YAML
45 lines
862 B
YAML
name: Test
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
concurrency:
|
|
group: test-${{ github.head_ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
mock-tests:
|
|
name: Mock Tests
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
|
|
- name: Install dependencies
|
|
run: bun install
|
|
|
|
- name: Run tests with coverage
|
|
run: bun test --coverage
|
|
|
|
unit-tests:
|
|
name: Unit Tests
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
|
|
- name: Install dependencies
|
|
run: bun install
|
|
|
|
- name: Verify cloud bundles build
|
|
run: bun run packages/cli/build-clouds.ts
|
|
|