We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76a8f86 commit 05167b4Copy full SHA for 05167b4
.github/workflows/ci.yml
@@ -60,6 +60,8 @@ jobs:
60
61
- name: Test
62
run: |
63
+ mix ecto.create
64
+ mix ecto.migrate
65
mix test --trace
66
env:
67
MIX_ENV: test
config/test.exs
@@ -3,7 +3,7 @@ import Config
3
# Configure SQLite database for testing
4
config :backend, Backend.Repo,
5
adapter: Ecto.Adapters.SQLite3,
6
- database: ":memory:",
+ database: "file::memory:?cache=shared",
7
pool: Ecto.Adapters.SQL.Sandbox,
8
pool_size: System.schedulers_online() * 2
9
test/test_helper.exs
@@ -1,2 +1,8 @@
1
+Application.ensure_all_started(:ecto_sql)
2
+Application.ensure_all_started(:backend)
+
+Mix.Task.run("ecto.create", ["--quiet"])
+Mix.Task.run("ecto.migrate", ["--quiet"])
ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Backend.Repo, :manual)
0 commit comments