Skip to content

Commit 71b22d6

Browse files
committed
Fix CI and test db config
1 parent b4bbe5e commit 71b22d6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/elixir_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
image: "postgres:17-alpine"
2525
env:
2626
POSTGRES_PASSWORD: password
27-
POSTGRES_DB: electric
27+
POSTGRES_DB: phoenix_sync
2828
options: >-
2929
--health-cmd pg_isready
3030
--health-interval 10s
@@ -60,7 +60,7 @@ jobs:
6060
with:
6161
path: |
6262
_build/*/lib
63-
!_build/*/lib/electric_phoenix
63+
!_build/*/lib/phoenix_sync
6464
key: ${{ runner.os }}-build-${{ env.MIX_ENV }}-[${{ github.ref_name }}]-${{ github.sha }}
6565
restore-keys: |
6666
${{ runner.os }}-build-${{ env.MIX_ENV }}-[${{ github.ref_name }}]-${{ github.sha }}

config/runtime.exs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import Config
22

33
if config_env() == :test do
44
# port = 3333
5-
default_database_url = "postgresql://postgres:password@localhost:55555/electric?sslmode=disable"
5+
default_database_url =
6+
"postgresql://postgres:password@localhost:55555/phoenix_sync?sslmode=disable"
7+
68
database_url = System.get_env("DATABASE_URL", default_database_url)
79

810
config :electric,

0 commit comments

Comments
 (0)