diff --git a/.github/workflows/test-mongodb.yml b/.github/workflows/test-mongodb.yml index b7d47fec..6053b85a 100644 --- a/.github/workflows/test-mongodb.yml +++ b/.github/workflows/test-mongodb.yml @@ -30,6 +30,6 @@ jobs: - name: Fetch Repository uses: actions/checkout@v2 - name: Run Test - run: go test ./mongodb -v -race + run: go test ./mongodb -tags=mongodb -v -race env: - MONGO_URI: "mongodb://root:password@127.0.0.1:27017" \ No newline at end of file + MONGO_URI: "mongodb://root:password@127.0.0.1:27017" diff --git a/.github/workflows/test-mysql.yml b/.github/workflows/test-mysql.yml index eafadd44..8551fd88 100644 --- a/.github/workflows/test-mysql.yml +++ b/.github/workflows/test-mysql.yml @@ -40,9 +40,9 @@ jobs: - name: Fetch Repository uses: actions/checkout@v2 - name: Run Test - run: go test ./mysql -v -race + run: go test ./mysql -tags=mysql -v -race env: MYSQL_ADDRESS: "127.0.0.1:3306" MYSQL_USERNAME: username MYSQL_PASSWORD: password - MYSQL_DATABASE: fiber \ No newline at end of file + MYSQL_DATABASE: fiber diff --git a/.github/workflows/test.yml.off b/.github/workflows/test.yml similarity index 100% rename from .github/workflows/test.yml.off rename to .github/workflows/test.yml diff --git a/memcache/memcache_test.go b/memcache/memcache_test.go index 89883a21..d6746ede 100644 --- a/memcache/memcache_test.go +++ b/memcache/memcache_test.go @@ -1 +1,3 @@ +// +build memcache + package memcache diff --git a/mongodb/mongodb_test.go b/mongodb/mongodb_test.go index 3a11740e..1003c82f 100644 --- a/mongodb/mongodb_test.go +++ b/mongodb/mongodb_test.go @@ -1,3 +1,5 @@ +// +build mongodb + package mongodb import ( diff --git a/mysql/mysql_test.go b/mysql/mysql_test.go index 7005bac4..8b0ac41d 100644 --- a/mysql/mysql_test.go +++ b/mysql/mysql_test.go @@ -1,3 +1,5 @@ +// +build mysql + package mysql import ( diff --git a/postgres/postgres_test.go b/postgres/postgres_test.go index bf560bea..9a8ec9d3 100644 --- a/postgres/postgres_test.go +++ b/postgres/postgres_test.go @@ -1 +1,3 @@ +// +build postgres + package postgres diff --git a/redis/redis_test.go b/redis/redis_test.go index f89c9bfe..dd29434f 100644 --- a/redis/redis_test.go +++ b/redis/redis_test.go @@ -1,3 +1,5 @@ +// +build redis + package redis import (