mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
ci(GODT-2717): Create a job that will run on schedule
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user