fix(ci): replace pg_isready with nc for postgres readiness check
This commit is contained in:
@@ -38,11 +38,6 @@ jobs:
|
|||||||
POSTGRES_PASSWORD: test
|
POSTGRES_PASSWORD: test
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
options: >-
|
|
||||||
--health-cmd pg_isready
|
|
||||||
--health-interval 10s
|
|
||||||
--health-timeout 5s
|
|
||||||
--health-retries 5
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -60,7 +55,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Wait for postgres
|
- name: Wait for postgres
|
||||||
run: |
|
run: |
|
||||||
until pg_isready -h localhost -p 5432 -U test; do
|
until nc -z localhost 5432; do
|
||||||
echo "Waiting for postgres..."
|
echo "Waiting for postgres..."
|
||||||
sleep 2
|
sleep 2
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user