ci(test): split unit vs API integration tests (#797)

This commit is contained in:
paulbettner
2026-02-03 19:09:40 -06:00
committed by GitHub
parent 55a31adae7
commit d175b0e155
6 changed files with 292 additions and 240 deletions

View File

@@ -71,9 +71,16 @@ jobs:
uses: t1m0thyj/unlock-keyring@v1
- name: Run tests (extended timeout)
# Unit tests must pass for fork PRs (no secrets). Keep API-dependent tests
# in a separate gated step.
run: bun test src/tests --timeout 15000
- name: Run integration tests (API)
# Only run on push to main or PRs from the same repo (not forks, to protect secrets)
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}
env:
LETTA_API_KEY: ${{ secrets.LETTA_API_KEY }}
run: bun test --timeout 15000
run: bun test src/integration-tests --timeout 15000
- name: Build bundle
run: bun run build