diff --git a/actions/runner_test.go b/actions/runner_test.go index aea55f1a..92ef52ce 100644 --- a/actions/runner_test.go +++ b/actions/runner_test.go @@ -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) diff --git a/actions/testdata/detect_event.workflow b/actions/testdata/detect_event.workflow new file mode 100644 index 00000000..a693395a --- /dev/null +++ b/actions/testdata/detect_event.workflow @@ -0,0 +1,9 @@ +workflow "detect-event" { + on = "pull_request" + resolves = ["build"] +} + +action "build" { + uses = "./action1" + args = "echo 'build'" +} \ No newline at end of file