1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-15 18:57:01 +00:00

add commands support

Signed-off-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
Casey Lee 2020-02-11 23:38:30 -08:00
parent c44aa2a118
commit c236395c01
12 changed files with 303 additions and 33 deletions

View file

@ -37,15 +37,18 @@ func TestRunEvent(t *testing.T) {
eventName string
errorMessage string
}{
{"basic", "push", ""},
{"fail", "push", "exit with `FAILURE`: 1"},
{"runs-on", "push", ""},
{"job-container", "push", ""},
{"uses-docker-url", "push", ""},
{"remote-action-docker", "push", ""},
{"remote-action-js", "push", ""},
{"local-action-docker-url", "push", ""},
{"local-action-dockerfile", "push", ""},
/*
{"basic", "push", ""},
{"fail", "push", "exit with `FAILURE`: 1"},
{"runs-on", "push", ""},
{"job-container", "push", ""},
{"uses-docker-url", "push", ""},
{"remote-action-docker", "push", ""},
{"remote-action-js", "push", ""},
{"local-action-docker-url", "push", ""},
{"local-action-dockerfile", "push", ""},
*/
}
log.SetLevel(log.DebugLevel)
@ -55,8 +58,9 @@ func TestRunEvent(t *testing.T) {
table := table
t.Run(table.workflowPath, func(t *testing.T) {
runnerConfig := &Config{
Workdir: "testdata",
EventName: table.eventName,
Workdir: "testdata",
EventName: table.eventName,
ReuseContainers: true,
}
runner, err := New(runnerConfig)
assert.NilError(t, err, table.workflowPath)