This commit is contained in:
Wells Bunker 2025-09-25 08:48:59 -06:00
parent c7c502823e
commit e6bfb24b2e
No known key found for this signature in database
GPG Key ID: DB16D6F2679B78FC
2 changed files with 6 additions and 3 deletions

View File

@ -63,6 +63,11 @@ runs:
with:
bun-version: ${{ inputs.bun-version }}
- name: Setup Supabase CLI
uses: supabase/setup-cli@v1
with:
version: latest
- name: Install dependencies
run: pnpm install --frozen-lockfile${{ inputs.install-filter && format(' --filter={0}', inputs.install-filter) || '' }}
shell: bash

View File

@ -13,15 +13,13 @@ const projectRoot = join(__dirname, '..');
// Database connection details from docker-compose.yml
const DB_HOST = 'host.docker.internal';
const DB_PORT = '54322';
const DB_NAME = 'postgres';
const DB_USER = 'postgres';
const DB_PASSWORD = 'postgres';
// Function to check if database is accessible
function isDatabaseRunning(): boolean {
try {
// Use pg_isready to check if PostgreSQL is accepting connections
execSync(`docker run --rm postgres:15 pg_isready -h ${DB_HOST} -p ${DB_PORT} -U ${DB_USER}`, {
execSync(`pg_isready -h ${DB_HOST} -p ${DB_PORT} -U ${DB_USER}`, {
stdio: 'pipe',
timeout: 45000
});