Skip to content

Commit

Permalink
Add host auth method
Browse files Browse the repository at this point in the history
  • Loading branch information
michalwarda committed Feb 17, 2024
1 parent 8e1e52f commit 83d2a6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/api-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
ports:
- 5432:5432
env:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres

Expand Down Expand Up @@ -62,6 +63,6 @@ jobs:
- run: mix test
env:
POSTGRES_HOST: postgres
POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }}
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }}
2 changes: 1 addition & 1 deletion apps/api/config/test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ config :buildel, Buildel.Repo,
password: System.get_env("POSTGRES_PASSWORD", "postgres"),
hostname: System.get_env("POSTGRES_HOST", "localhost"),
database: "buildel_test#{System.get_env("MIX_TEST_PARTITION")}",
port: System.get_env("POSTGRES_PORT", "54321"),
port: String.to_integer(System.get_env("POSTGRES_PORT", "54321")),
pool: Ecto.Adapters.SQL.Sandbox,
pool_size: 10

Expand Down

0 comments on commit 83d2a6e

Please sign in to comment.