Skip to content

Commit a35d9c6

Browse files
committed
ci: remove services, use Docker test pattern
Remove GitHub Actions services and let the tests start databases via the sqltest/docker package, matching the existing pattern for PostgreSQL and MySQL. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 06e74fc commit a35d9c6

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,6 @@ jobs:
2424
GOARCH: ${{ matrix.goarch }}
2525
test:
2626
runs-on: ubuntu-24.04
27-
services:
28-
postgres:
29-
image: postgres:16
30-
env:
31-
POSTGRES_USER: postgres
32-
POSTGRES_PASSWORD: mysecretpassword
33-
POSTGRES_DB: postgres
34-
ports:
35-
- 5432:5432
36-
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
37-
mysql:
38-
image: mysql:9
39-
env:
40-
MYSQL_DATABASE: dinotest
41-
MYSQL_ROOT_PASSWORD: mysecretpassword
42-
MYSQL_ROOT_HOST: '%'
43-
ports:
44-
- 3306:3306
45-
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5
46-
mssql:
47-
image: mcr.microsoft.com/mssql/server:2022-latest
48-
env:
49-
ACCEPT_EULA: Y
50-
MSSQL_SA_PASSWORD: MySecretPassword1!
51-
MSSQL_PID: Developer
52-
ports:
53-
- 1433:1433
5427
steps:
5528
- uses: actions/checkout@v6
5629
- uses: actions/setup-go@v6
@@ -85,9 +58,6 @@ jobs:
8558
CI_SQLC_AUTH_TOKEN: ${{ secrets.CI_SQLC_AUTH_TOKEN }}
8659
SQLC_AUTH_TOKEN: ${{ secrets.CI_SQLC_AUTH_TOKEN }}
8760
CGO_ENABLED: "0"
88-
POSTGRESQL_SERVER_URI: "postgres://postgres:mysecretpassword@localhost:5432/postgres?sslmode=disable"
89-
MYSQL_SERVER_URI: "root:mysecretpassword@tcp(localhost:3306)/dinotest?parseTime=true"
90-
MSSQL_SERVER_URI: "sqlserver://sa:MySecretPassword1!@localhost:1433?database=master"
9161

9262
vuln_check:
9363
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)