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 020d6a6083
commit 0f049426f6
8 changed files with 263 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)
}
}