Skip to content

Commit 10cbc2a

Browse files
committed
Add sqlc-test-setup install/start steps to CI workflow
Adds database setup before the test step so integration tests can connect to PostgreSQL and MySQL without Docker. https://claude.ai/code/session_01CsyRwSkRxBcQoaQFVkMQsJ
1 parent c1c4fbb commit 10cbc2a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ jobs:
5050
env:
5151
CGO_ENABLED: "0"
5252

53+
- name: install databases
54+
run: go run ./cmd/sqlc-test-setup install
55+
56+
- name: start databases
57+
run: go run ./cmd/sqlc-test-setup start
58+
5359
- name: test ./...
5460
run: gotestsum --junitfile junit.xml -- --tags=examples -timeout 20m ./...
5561
if: ${{ matrix.os }} != "windows-2022"

0 commit comments

Comments
 (0)