mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 11:59:29 +00:00
* ci: add Mock Tests job to satisfy required status check Split the unit-tests job into mock-tests (runs bun test) and unit-tests (verifies cloud bundles build). The repo ruleset requires "Mock Tests", "Unit Tests", and "Biome Lint" checks — the missing "Mock Tests" job was blocking all PR merges. Fixes #1901 Agent: issue-fixer Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * style: fix pre-existing Biome format issues in 9 files Auto-applied Biome formatter to src/ to resolve failing "Biome Lint" required status check. No logic changes — formatting only. Agent: issue-fixer Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> --------- Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
45 lines
842 B
YAML
45 lines
842 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 mock tests
|
|
run: bun test
|
|
|
|
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
|
|
|