Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: disable tests requiring mysql server as part of GitHub action (#919)
Danny Xucad2f77a2a6f
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex 8d1bdb2484..9941acd407 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -14,7 +14,6 @@ jobs:- uses: actions/setup-go@v2with:go-version: 1.17- - run: go generate ./...- name: golangci-lintuses: golangci/golangci-lint-action@v2with:@@ -41,5 +40,4 @@ jobs:with:go-version: 1.17- run: |- go generate ./...go test -v ./...diff --git a/bin/bb/cmd/dump_test.go b/bin/bb/cmd/dump_test.goindex b7e516516b..01a3f76938 100644--- a/bin/bb/cmd/dump_test.go+++ b/bin/bb/cmd/dump_test.go@@ -1,3 +1,6 @@+//go:build mysql+// +build mysql+package cmdimport (diff --git a/bin/bb/cmd/migrate_test.go b/bin/bb/cmd/migrate_test.goindex 18fc9ea469..69b8933558 100644--- a/bin/bb/cmd/migrate_test.go+++ b/bin/bb/cmd/migrate_test.go@@ -1,3 +1,6 @@+//go:build mysql+// +build mysql+package cmdimport (diff --git a/resources/README.md b/resources/README.mdindex ff944c2704..1ab62229a6 100644--- a/resources/README.md+++ b/resources/README.md@@ -1,6 +1,6 @@# Resources-You need to run `go generate ./...` to download some resources manually.+You need to run `go generate -tags mysql ./...` to download some resources manually.## Postgresql@@ -14,7 +14,7 @@ darwin/amd64 used for MacOS development (MD5 d95d5c5fccc1e1ef45de6533fd8e6d0a):## MySQL-We will embed MySQL binaries for testing. You need to run `go generate ./...` to download MySQL distributions first.+We will embed MySQL binaries for testing. You need to run `go generate -tags mysql ./...` to download MySQL distributions first.linux-glibc2.17-x86_64 used for Linux (MD5 55a7759e25cc527416150c8181ce3f6d): https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-8.0.28-linux-glibc2.17-x86_64-minimal.tar.xzdiff --git a/resources/mysql/mysql.go b/resources/mysql/mysql.goindex 42d4b235af..a237d61d66 100644--- a/resources/mysql/mysql.go+++ b/resources/mysql/mysql.go@@ -1,3 +1,6 @@+//go:build mysql+// +build mysql+package mysqlimport (diff --git a/resources/mysql/mysql_test.go b/resources/mysql/mysql_test.goindex 29bc529c9e..85380a78ae 100644--- a/resources/mysql/mysql_test.go+++ b/resources/mysql/mysql_test.go@@ -1,3 +1,6 @@+//go:build mysql+// +build mysql+package mysqlimport (diff --git a/resources/mysql/resources_darwin.go b/resources/mysql/resources_darwin.goindex f596392b06..a3d0c0811a 100644--- a/resources/mysql/resources_darwin.go+++ b/resources/mysql/resources_darwin.go@@ -1,3 +1,6 @@+//go:build mysql+// +build mysql+package mysqlimport "embed"@@ -7,5 +10,5 @@ import "embed"//go:embed mysql-8.0.28-macos11-arm64.tar.gz// To use this package in testing, download the MySQL binary first:-// go generate ./...+// go generate -tags mysql ./...var resources embed.FSdiff --git a/resources/mysql/resources_linux.go b/resources/mysql/resources_linux.goindex cfb4e00625..5ac9c6961a 100644--- a/resources/mysql/resources_linux.go+++ b/resources/mysql/resources_linux.go@@ -1,3 +1,6 @@+//go:build mysql+// +build mysql+package mysqlimport "embed"@@ -7,5 +10,5 @@ import "embed"//go:embed mysql-8.0.28-linux-glibc2.17-x86_64-minimal.tar.xz// To use this package in testing, download the MySQL binary first:-// go generate ./...+// go generate -tags mysql ./...var resources embed.FSdiff --git a/tests/ghost_test.go b/tests/ghost_test.goindex cfb2f85fd9..11c85a346a 100644--- a/tests/ghost_test.go+++ b/tests/ghost_test.go@@ -1,3 +1,6 @@+//go:build mysql+// +build mysql+package testsimport (