From 88fb3c60ebf268c8c99b35b0c23bfca5b4e89d86 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 1 Dec 2026 16:32:28 -0800 Subject: [PATCH] ci: give the go test job Postgres and MySQL services Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK --- .github/workflows/go.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0a06fbf6be..d17df74058 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -125,6 +125,28 @@ jobs: --health-interval 10s --health-timeout 5s --health-retries 5 + postgres: + image: postgres:17 + env: + POSTGRES_PASSWORD: postgres + ports: + - 5432:5432 + options: >- + --health-cmd "pg_isready -U postgres" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + mysql: + image: mysql:8.4 + env: + MYSQL_ROOT_PASSWORD: root + ports: + - 3306:3306 + options: >- + --health-cmd "mysqladmin ping -uroot -proot" + --health-interval 10s + --health-timeout 5s + --health-retries 10 steps: - name: Check out code into the Go module directory uses: actions/checkout@v7 @@ -136,6 +158,8 @@ jobs: - name: Test env: RUN_REDIS_TESTS: "1" + RUN_POSTGRES_TESTS: "1" + RUN_MYSQL_TESTS: "1" run: cd weed; go test -tags "elastic gocdk sqlite ydb tarantool tikv rclone" -v ./... test-32bit: