mirror of https://github.com/buster-so/buster.git
test
This commit is contained in:
parent
c7c502823e
commit
e6bfb24b2e
|
@ -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
|
||||
|
|
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue