Skip to content

Commit 66c0890

Browse files
committed
test7
1 parent 723f114 commit 66c0890

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
echo "Checking PostgreSQL connection..."
4444
pg_isready -h localhost -p 5432 && exit 0
4545
echo "PostgreSQL not ready, retrying in 5s..."
46+
sleep 5
4647
done
4748
echo "PostgreSQL failed to start!" && exit 1
4849
@@ -59,7 +60,7 @@ jobs:
5960
DB_USERNAME: postgres
6061
DB_PASSWORD: 12345678
6162
DB_NAME: database_services_test
62-
DB_HOST: postgres
63+
DB_HOST: localhost
6364
JWT_SECRET: supersecretkey
6465
JWT_EXPIRES_IN: 1h
6566
run: yarn sync-db
@@ -69,7 +70,7 @@ jobs:
6970
DB_USERNAME: postgres
7071
DB_PASSWORD: 12345678
7172
DB_NAME: database_services_test
72-
DB_HOST: postgres
73+
DB_HOST: localhost
7374
JWT_SECRET: supersecretkey
7475
JWT_EXPIRES_IN: 1h
7576
run: yarn migrate
@@ -80,7 +81,7 @@ jobs:
8081
DB_USERNAME: postgres
8182
DB_PASSWORD: 12345678
8283
DB_NAME: database_services_test
83-
DB_HOST: postgres
84+
DB_HOST: localhost
8485
JWT_SECRET: supersecretkey
8586
JWT_EXPIRES_IN: 1h
8687
run: yarn test

0 commit comments

Comments
 (0)