From 07e90ebb1bd4b7a64afa83928aa3047e230f3534 Mon Sep 17 00:00:00 2001 From: Azreyo <58790873+Azreyo@users.noreply.github.com> Date: Sat, 20 Dec 2025 23:55:37 +0100 Subject: [PATCH] fix: clean up previous test containers before starting new ones in CI --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 094896c..3bc680c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -163,6 +163,9 @@ jobs: docker build -t carbon-server:test . - name: Test Docker container startup run: | + # Clean up any previous test containers + docker rm -f carbon-test 2>/dev/null || true + # Start container in background docker run -d --name carbon-test -p 8080:8080 carbon-server:test # Wait for server to start (healthcheck needs time)