From 49b639e422d3390694f262b134fbecb6935c114e Mon Sep 17 00:00:00 2001 From: schuwi Date: Sat, 20 Sep 2025 16:58:44 +0200 Subject: [PATCH] ci: allow setting db hostname --- config/test.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/test.exs b/config/test.exs index 6a30c71..8a19e45 100644 --- a/config/test.exs +++ b/config/test.exs @@ -8,7 +8,7 @@ import Config config :components_elixir, ComponentsElixir.Repo, username: "postgres", password: System.get_env("POSTGRES_PASSWORD") || "fCnPB8VQdPkhJAD29hq6sZEY", - hostname: "localhost", + hostname: System.get_env("POSTGRES_HOSTNAME") || "localhost", database: "components_elixir_test#{System.get_env("MIX_TEST_PARTITION")}", pool: Ecto.Adapters.SQL.Sandbox, pool_size: System.schedulers_online() * 2