File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 1212
1313 services :
1414 postgres :
15- image : postgres:17
15+ image : postgres:15
1616 env :
1717 POSTGRES_PASSWORD : postgres
1818 POSTGRES_USER : postgres
@@ -52,21 +52,24 @@ jobs:
5252 cache : ' yarn'
5353
5454 - name : Install dependencies
55- run : yarn install --immutable
55+ run : yarn install --frozen-lockfile
5656
57- - name : Wait for PostgreSQL to be ready
57+ - name : Install Redis CLI
58+ run : sudo apt-get update && sudo apt-get install -y redis-tools
59+
60+ - name : Wait for services to be ready
5861 run : |
62+ echo "Waiting for PostgreSQL..."
5963 until pg_isready -h localhost -p 5432 -U postgres; do
60- echo "Waiting for PostgreSQL..."
6164 sleep 2
6265 done
66+ echo "PostgreSQL is ready!"
6367
64- - name : Wait for Redis to be ready
65- run : |
68+ echo "Waiting for Redis..."
6669 until redis-cli -h localhost -p 6379 ping; do
67- echo "Waiting for Redis..."
6870 sleep 2
6971 done
72+ echo "Redis is ready!"
7073
7174 - name : Run database migrations
7275 run : yarn prisma migrate deploy
You can’t perform that action at this time.
0 commit comments