[misc] Skip mysql-migrate container tests on Windows (#8121)

This commit is contained in:
Bethuel Mmbaga
2026-10-08 13:55:09 +03:00
committed by GitHub
parent a8a67f5cf1
commit cc51a3e16a
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ jobs:
# resolve; the Where-Object pipeline then drops the broken package by
# path. Without -e, go list aborts with empty stdout.
run: |
$packages = go list -e ./... | Where-Object { $_ -notmatch '/management' } | Where-Object { $_ -notmatch '/relay' } | Where-Object { $_ -notmatch '/signal' } | Where-Object { $_ -notmatch '/proxy' } | Where-Object { $_ -notmatch '/combined' } | Where-Object { $_ -notmatch '/client/ui$' }
$packages = go list -e ./... | Where-Object { $_ -notmatch '/management' } | Where-Object { $_ -notmatch '/relay' } | Where-Object { $_ -notmatch '/signal' } | Where-Object { $_ -notmatch '/proxy' } | Where-Object { $_ -notmatch '/combined' } | Where-Object { $_ -notmatch '/client/ui$' } | Where-Object { $_ -notmatch '/tools/mysql-migrate' }
$goExe = "C:\hostedtoolcache\windows\go\${{ steps.go.outputs.go-version }}\x64\bin\go.exe"
$cmd = "$goExe test -tags `"devcert privileged`" -timeout 10m -p 1 $($packages -join ' ') > test-out.txt 2>&1"
Set-Content -Path "${{ github.workspace }}\run-tests.cmd" -Value $cmd
+4 -4
View File
@@ -32,8 +32,8 @@ import (
const testAccountID = "bf1c8084-ba50-4ce7-9439-34653001fc3b"
func TestRun(t *testing.T) {
if os.Getenv("CI") == "true" && runtime.GOOS != "linux" {
t.Skip("needs Docker for the MySQL and Postgres containers")
if runtime.GOOS == "windows" || (os.Getenv("CI") == "true" && runtime.GOOS != "linux") {
t.Skip("needs Docker with Linux containers for MySQL and Postgres")
}
// Seed in UTC to match the --mysql-timezone default.
time.Local = time.UTC
@@ -153,8 +153,8 @@ func accountJSON(t *testing.T, ctx context.Context, s store.Store) string {
}
func TestMySQLTimezone(t *testing.T) {
if os.Getenv("CI") == "true" && runtime.GOOS != "linux" {
t.Skip("needs Docker for the MySQL and Postgres containers")
if runtime.GOOS == "windows" || (os.Getenv("CI") == "true" && runtime.GOOS != "linux") {
t.Skip("needs Docker with Linux containers for MySQL and Postgres")
}
ctx := context.Background()
mysqlDSN := newMySQLDatabase(t, "tz_src")