Skip to content

Commit abcfcd0

Browse files
committed
ci(s050): the adapter check runs without booting the application (Oban needs its table first)
Signed-off-by: Ayla Croft <aylacroft@proton.me>
1 parent e382fc0 commit abcfcd0

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎.github/workflows/gate.yml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,12 @@ jobs:
9696
- run: mix deps.get
9797

9898
# The adapter is chosen at compile time (config/config.exs); this proves the build
99-
# under TRINITY_DB=postgres links the Postgres adapter and nothing SQLite.
99+
# under TRINITY_DB=postgres links the Postgres adapter and nothing SQLite. `--no-start`
100+
# since slice 050: the check needs the compiled module, not a booted application, and
101+
# Oban refuses to start before its table is migrated (run 35711666503, this step booted
102+
# the application before `ecto.reset`).
100103
- name: The compiled adapter is Postgres
101-
run: mix run -e 'Ecto.Adapters.Postgres = Trinity.Repo.__adapter__()'
104+
run: mix run --no-start -e 'Ecto.Adapters.Postgres = Trinity.Repo.__adapter__()'
102105

103106
- run: mix ecto.reset
104107
- run: mix test --exclude sqlite

0 commit comments

Comments
 (0)