Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
inoas committed Jan 12, 2025
1 parent fb107cb commit 30c5758
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
10 changes: 0 additions & 10 deletions .github/sh/create-database-gleam_cake_pgo_test-postgres.sh

This file was deleted.

10 changes: 10 additions & 0 deletions .github/sh/create-database-gleam_cake_pog_test-postgres.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env sh

set -eu

psql <<SQL
SELECT 'CREATE DATABASE gleam_cake_pog_test'
WHERE NOT EXISTS (
SELECT FROM pg_database WHERE datname = 'gleam_cake_pog_test'
)\\gexec
SQL
2 changes: 1 addition & 1 deletion .github/workflows/abstract_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
with:
gleam_version: ${{ inputs.gleam_version }}
erlang_version: ${{ matrix.erlang }}
- run: ./.github/sh/create-database-gleam_cake_pgo_test-postgres.sh
- run: ./.github/sh/create-database-gleam_cake_pog_test-postgres.sh
env:
PGHOST: localhost
PGPORT: 5432
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
- ./docker/data/postgres-data:/var/lib/postgresql/data
# - ./sql/create_tables.sql:/docker-entrypoint-initdb.d/create_tables.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "db_prod"]
test: ["CMD-SHELL", "pg_isready", "-d", "gleam_cake_pog_test"]
interval: 30s
timeout: 60s
retries: 5
Expand Down

0 comments on commit 30c5758

Please sign in to comment.