mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-23 07:26:47 +00:00
CI: Add macOS, Windows x64 and Linux arm64 test support (#1422)
* CI: Add macOS, Windows and Linux arm64 support * Modify arm64 job name to be inline with the others * linter: Prevent cache from causing "Cannot open: File exists" issues * Use setup-go and setup-node's inbuilt caching
This commit is contained in:
@@ -2,7 +2,6 @@ package testhelpers
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
|
||||
@@ -26,38 +25,6 @@ var (
|
||||
|
||||
// GetConnectionDetails returns connection details for CI or test db instances
|
||||
func GetConnectionDetails() *database.Config {
|
||||
_, exists := os.LookupEnv("TRAVIS")
|
||||
if exists {
|
||||
return &database.Config{
|
||||
Enabled: true,
|
||||
Driver: "postgres",
|
||||
ConnectionDetails: drivers.ConnectionDetails{
|
||||
Host: "localhost",
|
||||
Port: 5432,
|
||||
Username: "postgres",
|
||||
Password: "",
|
||||
Database: "gct_dev_ci",
|
||||
SSLMode: "",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
_, exists = os.LookupEnv("APPVEYOR")
|
||||
if exists {
|
||||
return &database.Config{
|
||||
Enabled: true,
|
||||
Driver: "postgres",
|
||||
ConnectionDetails: drivers.ConnectionDetails{
|
||||
Host: "localhost",
|
||||
Port: 5432,
|
||||
Username: "postgres",
|
||||
Password: "Password12!",
|
||||
Database: "gct_dev_ci",
|
||||
SSLMode: "",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
return &database.Config{
|
||||
Enabled: true,
|
||||
Driver: "postgres",
|
||||
|
||||
Reference in New Issue
Block a user