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

Separate Container Workdir from host Workdir (#635)

* Separate Container Workdir from Host Workdir

* Add delegated component to MacOS Test

* Lint: Remove leading newline

* Fix trailing path issue
This commit is contained in:
Justin Grote 2021-05-04 14:50:35 -07:00 committed by GitHub
parent fd8ea7a65a
commit d9dcf75671
7 changed files with 259 additions and 66 deletions

View file

@ -2,8 +2,10 @@ package runner
import (
"context"
"path/filepath"
"testing"
"github.com/joho/godotenv"
"github.com/nektos/act/pkg/common"
)
@ -20,7 +22,8 @@ func TestStepContextExecutor(t *testing.T) {
}
// These tests are sufficient to only check syntax.
ctx := common.WithDryrun(context.Background(), true)
secrets, _ := godotenv.Read(filepath.Join("..", ".secrets"))
for _, table := range tables {
runTestJobFile(ctx, t, table)
runTestJobFile(ctx, t, table, secrets)
}
}