Skip to content

Commit 008d525

Browse files
committed
set POSTGRES_DB in worflows
1 parent b71ea15 commit 008d525

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
image: postgres:latest
1111
env:
1212
POSTGRES_PASSWORD: postgres
13+
POSTGRES_DB: sql_test
14+
POSTGRES_HOST_AUTH_METHOD: trust
1315
ports: ["5432:5432"]
1416
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
1517
steps:

.github/workflows/conformance.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
image: postgres:latest
1111
env:
1212
POSTGRES_PASSWORD: postgres
13+
POSTGRES_DB: sql_test
14+
POSTGRES_HOST_AUTH_METHOD: trust
1315
ports: ["5432:5432"]
1416
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
1517
steps:

mix.exs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ defmodule SQL.MixProject do
4545
defp deps do
4646
[
4747
{:benchee, "~> 1.3", only: :dev},
48-
{:ecto_sql, "~> 3.12", only: [:dev, :test]},
48+
{:ecto_sql, "~> 3.12", only: :dev},
4949
{:ex_doc, "~> 0.37", only: :dev},
50-
{:postgrex, ">= 0.0.0", only: [:dev, :test]},
51-
{:tds, ">= 0.0.0", only: [:dev, :test]},
52-
{:myxql, ">= 0.0.0", only: [:dev, :test]},
53-
{:yamerl, ">= 0.0.0", only: [:dev, :test]},
50+
{:postgrex, ">= 0.0.0", only: :dev},
51+
{:tds, ">= 0.0.0", only: :dev},
52+
{:myxql, ">= 0.0.0", only: :dev},
53+
{:yamerl, ">= 0.0.0", only: :dev},
5454
{:unicode_set, "~> 1.0"}
5555
]
5656
end

test/test_helper.exs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# SPDX-License-Identifier: Apache-2.0
22
# SPDX-FileCopyrightText: 2025 DBVisor
33

4-
defmodule SQL.Repo do
5-
use Ecto.Repo, otp_app: :sql, adapter: Ecto.Adapters.Postgres
6-
end
74
defmodule SQLTest.Helpers do
85
def validate([[[[[], b1], b2], b3],b4], _) when b1 in ~c"tT" and b2 in ~c"eE" and b3 in ~c"sS" and b4 in ~c"tT", do: true
96
def validate(_, _), do: false

0 commit comments

Comments
 (0)