From 4453728614d444baae8bed42a65c99e229d66833 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Tue, 6 Dec 2022 08:39:24 +0100 Subject: [PATCH] Murder docker container and network before run Signed-off-by: Kristoffer Dalby --- .github/workflows/test-integration-v2-kradalby.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test-integration-v2-kradalby.yml b/.github/workflows/test-integration-v2-kradalby.yml index a6ccea13..e73537c8 100644 --- a/.github/workflows/test-integration-v2-kradalby.yml +++ b/.github/workflows/test-integration-v2-kradalby.yml @@ -22,6 +22,14 @@ jobs: integration_test/ config-example.yaml + # We currently only run one job at the time, so make sure + # we just wipe all containers and all networks. + - name: Clean up Docker + if: steps.changed-files.outputs.any_changed == 'true' + run: | + docker kill $(docker ps -q) + docker network prune -f + - name: Run general integration tests if: steps.changed-files.outputs.any_changed == 'true' run: nix develop --command -- make test_integration_v2_general