mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
Add extra test for event detection
This commit is contained in:
parent
619277e6b6
commit
3ce10d920c
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…
Add table
Add a link
Reference in a new issue