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:
parent
fd8ea7a65a
commit
d9dcf75671
7 changed files with 259 additions and 66 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue