diff --git a/internal/app/integration_test.go b/internal/app/integration_test.go index e08b547..448aaf2 100644 --- a/internal/app/integration_test.go +++ b/internal/app/integration_test.go @@ -20,6 +20,7 @@ import ( "git.netflux.io/rob/octoplex/internal/domain" "git.netflux.io/rob/octoplex/internal/terminal" "git.netflux.io/rob/octoplex/internal/testhelpers" + typescontainer "github.com/docker/docker/api/types/container" "github.com/docker/docker/api/types/network" dockerclient "github.com/docker/docker/client" "github.com/docker/docker/errdefs" @@ -54,6 +55,18 @@ func TestIntegration(t *testing.T) { dockerClient, err := dockerclient.NewClientWithOpts(dockerclient.FromEnv, dockerclient.WithAPIVersionNegotiation()) require.NoError(t, err) + // List existing containers to debug Github Actions environment. + containers, err := dockerClient.ContainerList(ctx, typescontainer.ListOptions{}) + require.NoError(t, err) + + if len(containers) == 0 { + logger.Info("No existing containers found") + } else { + for _, ctr := range containers { + logger.Info("Container", "id", ctr.ID, "name", ctr.Names, "image", ctr.Image, "started", ctr.Created, "labels", ctr.Labels) + } + } + screen, screenCaptureC, getContents := setupSimulationScreen(t) // https://stackoverflow.com/a/60740997/62871