Add extra test for event detection
This commit is contained in:
parent
96065fe807
commit
ff2c631d40
|
@ -24,6 +24,7 @@ func TestRunEvent(t *testing.T) {
|
||||||
{"regex.workflow", "push", "exit with `NEUTRAL`: 78"},
|
{"regex.workflow", "push", "exit with `NEUTRAL`: 78"},
|
||||||
{"gitref.workflow", "push", ""},
|
{"gitref.workflow", "push", ""},
|
||||||
{"env.workflow", "push", ""},
|
{"env.workflow", "push", ""},
|
||||||
|
{"detect_event.workflow", "", ""},
|
||||||
}
|
}
|
||||||
log.SetLevel(log.DebugLevel)
|
log.SetLevel(log.DebugLevel)
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
workflow "detect-event" {
|
||||||
|
on = "pull_request"
|
||||||
|
resolves = ["build"]
|
||||||
|
}
|
||||||
|
|
||||||
|
action "build" {
|
||||||
|
uses = "./action1"
|
||||||
|
args = "echo 'build'"
|
||||||
|
}
|
Loading…
Reference in New Issue