Skip to content

Commit eb9144a

Browse files
committed
Update CLAUDE.md to document CI database setup via sqlc-test-setup
https://claude.ai/code/session_01CsyRwSkRxBcQoaQFVkMQsJ
1 parent 3ff6c0a commit eb9144a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CLAUDE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ go run ./cmd/sqlc-test-setup start
3636
This will:
3737
- Start PostgreSQL and configure password auth (`postgres`/`postgres`)
3838
- Start MySQL via `mysqld_safe` and set root password (`mysecretpassword`)
39+
- Handle pre-installed MySQL (e.g. on GitHub Actions runners) by resetting the root password via `--skip-grant-tables`
3940
- Verify both connections
4041
- Skip steps that are already done (running services, existing config)
4142

@@ -148,6 +149,7 @@ make start # Start database containers
148149

149150
- **File:** `.github/workflows/ci.yml`
150151
- **Go Version:** 1.25.0
152+
- **Database Setup:** Uses `sqlc-test-setup` (not Docker) to install and start PostgreSQL and MySQL directly on the runner
151153
- **Test Command:** `gotestsum --junitfile junit.xml -- --tags=examples -timeout 20m ./...`
152154
- **Additional Checks:** `govulncheck` for vulnerability scanning
153155

0 commit comments

Comments
 (0)