From 29cefb64be076e0e0f77734eb4f1f9b96ca6e8d6 Mon Sep 17 00:00:00 2001 From: nurdotnet <278048682+nurdotnet@users.noreply.github.com> Date: Wed, 22 Apr 2026 23:55:12 +0500 Subject: [PATCH] ci(backend): map postgres service to host:5441 instead of 5432 The self-hosted runner host already has brew postgres@14 listening on 127.0.0.1:5432, so binding the test postgres container to host 5432 produces a port-already-allocated error. Pick 5441 and update the connection string accordingly. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd24f7e..f7e6877 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: --health-timeout 5s --health-retries 5 ports: - - 5432:5432 + - 5441:5432 steps: - uses: actions/checkout@v4 @@ -45,7 +45,7 @@ jobs: - name: Test env: - ConnectionStrings__Default: Host=localhost;Port=5432;Database=food_market_test;Username=postgres;Password=postgres + ConnectionStrings__Default: Host=localhost;Port=5441;Database=food_market_test;Username=postgres;Password=postgres run: dotnet test food-market.sln --no-build -c Release --verbosity normal || echo "No tests yet" web: