Skip to content

ci: add GitHub Actions workflow for tests and type checking#2

Merged
dandaka merged 4 commits intomainfrom
ci/add-github-actions
Mar 17, 2026
Merged

ci: add GitHub Actions workflow for tests and type checking#2
dandaka merged 4 commits intomainfrom
ci/add-github-actions

Conversation

@dandaka
Copy link
Owner

@dandaka dandaka commented Mar 17, 2026

Summary

  • Adds a GitHub Actions CI workflow that runs on push to main and on pull requests
  • Installs Bun via oven-sh/setup-bun@v2, runs bun install, then type checks with tsc --noEmit and runs tests with bun test

Test plan

  • Verify the workflow triggers on this PR
  • Confirm type checking passes
  • Confirm tests pass

🤖 Generated with Claude Code

dandaka and others added 4 commits March 17, 2026 09:02
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The runSql return type is a union — cast read-query results to
Record<string, unknown>[] so .length and [0] access type-check.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Tests used hardcoded ports that fail in CI. Now use port 0 (OS-assigned)
and read back the actual port. startHealthServer returns the bound port.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The embeddings test mocked globalThis.fetch but only restored it in
beforeEach, allowing the mock to leak into concurrent test files
(health tests). Adding afterEach(restoreFetch) fixes the race.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dandaka dandaka merged commit 53cae37 into main Mar 17, 2026
1 check passed
@dandaka dandaka deleted the ci/add-github-actions branch March 17, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant