From af2562ef2ba2c514c067ba3c9561c78fea8383eb Mon Sep 17 00:00:00 2001 From: Djalim Simaila Date: Sun, 26 Apr 2026 00:35:42 +0200 Subject: [PATCH] fix(ci): replace pg_isready with nc for postgres readiness check --- .gitea/workflows/test.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index c29e9cb..5715b72 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -38,11 +38,6 @@ jobs: POSTGRES_PASSWORD: test ports: - 5432:5432 - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 steps: - uses: actions/checkout@v4 @@ -60,7 +55,7 @@ jobs: - name: Wait for postgres run: | - until pg_isready -h localhost -p 5432 -U test; do + until nc -z localhost 5432; do echo "Waiting for postgres..." sleep 2 done