Skip to content

Commit 5653951

Browse files
committed
Fix DOCKER_IMAGE environment variable - export it properly
Export DOCKER_IMAGE so TestMain can read it correctly. Without export, the variable wasn't available to the test process.
1 parent 623b0b3 commit 5653951

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,11 @@ jobs:
189189
run: |
190190
export PATH="${{ github.workspace }}/bin:$PATH"
191191
if [ "${{ matrix.db_type }}" == "tidb" ]; then
192-
TIDB_VERSION=${{ matrix.db_version }} go test -tags=testcontainers -v ./mysql/... -run WithTestcontainers -timeout=30m
192+
export TIDB_VERSION=${{ matrix.db_version }}
193+
go test -tags=testcontainers -v ./mysql/... -run WithTestcontainers -timeout=30m
193194
else
194-
DOCKER_IMAGE=${{ matrix.docker_image }} go test -tags=testcontainers -v ./mysql/... -run WithTestcontainers -timeout=30m
195+
export DOCKER_IMAGE=${{ matrix.docker_image }}
196+
go test -tags=testcontainers -v ./mysql/... -run WithTestcontainers -timeout=30m
195197
fi
196198
release:
197199
name: Release

0 commit comments

Comments
 (0)