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