Skip to content

Commit

Permalink
test: Enshure ForcePull config doesn't break docker actions (1661)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherHX authored Mar 8, 2023
1 parent f3c88b5 commit 24440d9
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pkg/runner/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,30 @@ func TestDryrunEvent(t *testing.T) {
}
}

func TestDockerActionForcePullForceRebuild(t *testing.T) {
if testing.Short() {
t.Skip("skipping integration test")
}

ctx := context.Background()

config := &Config{
ForcePull: true,
ForceRebuild: true,
}

tables := []TestJobFileInfo{
{workdir, "local-action-dockerfile", "push", "", platforms, secrets},
{workdir, "local-action-via-composite-dockerfile", "push", "", platforms, secrets},
}

for _, table := range tables {
t.Run(table.workflowPath, func(t *testing.T) {
table.runTest(ctx, t, config)
})
}
}

func TestRunDifferentArchitecture(t *testing.T) {
if testing.Short() {
t.Skip("skipping integration test")
Expand Down

0 comments on commit 24440d9

Please sign in to comment.