mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-30 07:26:46 +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:
@@ -30,7 +30,7 @@ import (
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
// only run testing suite for one CI/CD environment
|
||||
if isAppVeyor() || is32BitJob() {
|
||||
if skipAdditionalWrapperCITests() {
|
||||
return
|
||||
}
|
||||
request.MaxRequestJobs = 200
|
||||
@@ -754,16 +754,9 @@ Rsd80LrBCVI8ctzrvYRFSugC`
|
||||
}
|
||||
|
||||
func isCITest() bool {
|
||||
ci := os.Getenv("CI")
|
||||
return ci == "true" /* github actions */ || ci == "True" /* appveyor */
|
||||
return os.Getenv("CI") == "true"
|
||||
}
|
||||
|
||||
func isAppVeyor() bool {
|
||||
ci := os.Getenv("APPVEYOR")
|
||||
return ci == "True"
|
||||
}
|
||||
|
||||
func is32BitJob() bool {
|
||||
ci := os.Getenv("GITHUB_JOB")
|
||||
return ci == "backend-32bit"
|
||||
func skipAdditionalWrapperCITests() bool {
|
||||
return os.Getenv("SKIP_WRAPPER_CI_TESTS") == "true"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user