Added steps for compiling test ENV to dockerfile
This commit is contained in:
parent
59d8a0e6be
commit
6131542bcc
2 changed files with 3 additions and 2 deletions
2
.github/workflows/lint_and_test.yml
vendored
2
.github/workflows/lint_and_test.yml
vendored
|
|
@ -51,7 +51,7 @@ jobs:
|
|||
- name: Create and Migrate database
|
||||
run: |
|
||||
docker compose exec -T phx mix ecto.create
|
||||
docker compose exec -T mix ecto.migrate
|
||||
docker compose exec -T phx mix ecto.migrate
|
||||
|
||||
- name: Run code checks
|
||||
run: docker compose exec -T phx mix check --no-fix --no-retry
|
||||
|
|
|
|||
|
|
@ -55,7 +55,8 @@ COPY . ./
|
|||
|
||||
# Install Elixir deps
|
||||
# RUN mix archive.install github hexpm/hex branch latest
|
||||
RUN mix deps.get
|
||||
RUN mix deps.get && mix deps.compile
|
||||
RUN MIX_ENV=test mix deps.get && MIX_ENV=test mix deps.compile
|
||||
# Gives us iex shell history
|
||||
ENV ERL_AFLAGS="-kernel shell_history enabled"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue