Added steps for compiling test ENV to dockerfile

This commit is contained in:
Kieran Eglin 2024-07-17 11:17:34 -07:00
parent 59d8a0e6be
commit 6131542bcc
No known key found for this signature in database
GPG key ID: 193984967FCF432D
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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"