mirror of https://gitea.com/gitea/act_runner.git
Add an extra test
This commit is contained in:
parent
5330599c93
commit
1c25ee9d71
|
|
@ -21,6 +21,7 @@ func TestRunEvent(t *testing.T) {
|
|||
{"basic.workflow", "push", ""},
|
||||
{"pipe.workflow", "push", ""},
|
||||
{"fail.workflow", "push", "exit with `FAILURE`: 1"},
|
||||
{"buildfail.workflow", "push", "COPY failed"},
|
||||
{"regex.workflow", "push", "exit with `NEUTRAL`: 78"},
|
||||
{"gitref.workflow", "push", ""},
|
||||
{"env.workflow", "push", ""},
|
||||
|
|
@ -42,7 +43,7 @@ func TestRunEvent(t *testing.T) {
|
|||
if table.errorMessage == "" {
|
||||
assert.NilError(t, err, table.workflowPath)
|
||||
} else {
|
||||
assert.Error(t, err, table.errorMessage)
|
||||
assert.ErrorContains(t, err, table.errorMessage)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
FROM alpine:3.8
|
||||
COPY foobar /foo/bar
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
workflow "test" {
|
||||
on = "push"
|
||||
resolves = ["test-action"]
|
||||
}
|
||||
|
||||
action "test-action" {
|
||||
uses = "./buildfail-action"
|
||||
}
|
||||
Loading…
Reference in New Issue