Skip to content

Commit f27c08b

Browse files
committed
fix tests
1 parent c1caaea commit f27c08b

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/health-check.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,26 @@ jobs:
4040
- name: Install dependencies
4141
run: yarn install
4242

43-
- name: Install PostgreSQL Client and Run Migrations
43+
- name: Install PostgreSQL Client and Setup Database
4444
run: |
4545
# Install PostgreSQL client
4646
sudo apt-get update
4747
sudo apt-get install -y postgresql-client
4848
49-
# Run migrations (they are idempotent with IF NOT EXISTS)
49+
# Run schema first to create base tables
50+
echo "Creating database schema..."
51+
psql $DATABASE_URL -f schema.sql || {
52+
echo "❌ Database schema creation failed"
53+
exit 1
54+
}
55+
56+
# Run migrations for any updates
5057
echo "Running database migrations..."
5158
psql $DATABASE_URL -f migrations.sql || {
5259
echo "❌ Database migrations failed"
5360
exit 1
5461
}
55-
echo "✅ Database migrations completed successfully"
62+
echo "✅ Database setup completed successfully"
5663
5764
- name: Test Database Extensions
5865
run: |

0 commit comments

Comments
 (0)