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

unit tests pass

This commit is contained in:
Casey Lee 2020-02-24 10:56:49 -08:00
parent 0f6340f811
commit 72682352a6
4 changed files with 66 additions and 17 deletions

View file

@ -3,6 +3,7 @@ package runner
import (
"context"
"fmt"
"path/filepath"
"testing"
"github.com/nektos/act/pkg/model"
@ -59,8 +60,11 @@ func TestRunEvent(t *testing.T) {
platforms := map[string]string{
"ubuntu-latest": "node:12.6-buster-slim",
}
workdir, err := filepath.Abs("testdata")
assert.NilError(t, err, table.workflowPath)
runnerConfig := &Config{
Workdir: "testdata",
Workdir: workdir,
EventName: table.eventName,
Platforms: platforms,
ReuseContainers: false,