Skip to content

Commit b214112

Browse files
committed
fix tests
1 parent 8b64a3b commit b214112

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

.github/workflows/health-check.yml

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

43-
- name: Validate SQL Schema
44-
run: |
45-
# Install PostgreSQL client
46-
sudo apt-get update
47-
sudo apt-get install -y postgresql-client
48-
49-
# Test SQL syntax
50-
echo "Testing SQL syntax..."
51-
psql $DATABASE_URL -f migrations.sql --dry-run || {
52-
echo "❌ SQL syntax validation failed"
53-
exit 1
54-
}
55-
echo "✅ SQL syntax is valid"
56-
57-
- name: Run Database Migrations
58-
run: |
59-
echo "Running migrations..."
60-
psql $DATABASE_URL -f migrations.sql
61-
echo "✅ Migrations completed successfully"
43+
- name: Install PostgreSQL Client and Run Migrations
44+
run: |
45+
# Install PostgreSQL client
46+
sudo apt-get update
47+
sudo apt-get install -y postgresql-client
48+
49+
# Run migrations (they are idempotent with IF NOT EXISTS)
50+
echo "Running database migrations..."
51+
psql $DATABASE_URL -f migrations.sql || {
52+
echo "❌ Database migrations failed"
53+
exit 1
54+
}
55+
echo "✅ Database migrations completed successfully"
6256
6357
- name: Test Database Extensions
6458
run: |

0 commit comments

Comments
 (0)