summaryrefslogtreecommitdiffstats
path: root/pkg/runner/runner_test.go
diff options
context:
space:
mode:
authorChristopherHX <christopher.homberger@web.de>2023-03-08 15:57:49 +0100
committerGitHub <noreply@github.com>2023-03-08 15:57:49 +0100
commit24440d9f15673993dc6986f2c64dbd056e4286fe (patch)
tree3cc5eb4659c80701db4b0a24867e3e925f2b0584 /pkg/runner/runner_test.go
parentfix: crash if the id tool fails to run in the container (1660) (diff)
downloadforgejo-act-24440d9f15673993dc6986f2c64dbd056e4286fe.tar.xz
forgejo-act-24440d9f15673993dc6986f2c64dbd056e4286fe.zip
test: Enshure ForcePull config doesn't break docker actions (1661)
Diffstat (limited to 'pkg/runner/runner_test.go')
-rw-r--r--pkg/runner/runner_test.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkg/runner/runner_test.go b/pkg/runner/runner_test.go
index b0ce4f2..60a8193 100644
--- a/pkg/runner/runner_test.go
+++ b/pkg/runner/runner_test.go
@@ -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")