ci(GODT-2717): Create a job that will run on schedule

This commit is contained in:
Gjorgji Slamkov
2023-08-10 12:19:59 +00:00
parent ccb9b7f81c
commit c90248920a
4 changed files with 43 additions and 0 deletions

View File

@ -267,6 +267,7 @@ func TestFeatures(testingT *testing.T) {
Format: "pretty",
Paths: getFeaturePaths(),
TestingT: testingT,
Tags: getFeatureTags(),
},
}
@ -286,3 +287,18 @@ func getFeaturePaths() []string {
return paths
}
func getFeatureTags() string {
var tags string
switch arguments := os.Args; arguments[len(arguments)-1] {
case "nightly":
tags = ""
case "smoke": // Currently this is just a placeholder, as there are no scenarios tagged with @smoke
tags = "@smoke"
default:
tags = "~@regression && ~@smoke" // To exclude more add `&& ~@tag`
}
return tags
}