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:
Adrian Gallagher
2023-12-28 14:55:50 +11:00
committed by GitHub
parent 2b3c63c5b3
commit e8e0ff3a35
12 changed files with 138 additions and 368 deletions

View File

@@ -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"
}