Added env vars
This commit is contained in:
parent
fccbde0fff
commit
a0b1da26a5
2 changed files with 6 additions and 7 deletions
4
.github/workflows/lint_and_test.yml
vendored
4
.github/workflows/lint_and_test.yml
vendored
|
|
@ -50,8 +50,8 @@ jobs:
|
||||||
|
|
||||||
- name: Create and Migrate database
|
- name: Create and Migrate database
|
||||||
run: |
|
run: |
|
||||||
docker compose exec -T phx mix ecto.create
|
docker compose exec -T phx MIX_ENV=test mix ecto.create
|
||||||
docker compose exec -T phx mix ecto.migrate
|
docker compose exec -T phx MIX_ENV=test mix ecto.migrate
|
||||||
|
|
||||||
- name: Run code checks
|
- name: Run code checks
|
||||||
run: docker compose exec -T phx mix check --no-fix --no-retry
|
run: docker compose exec -T phx mix check --no-fix --no-retry
|
||||||
|
|
|
||||||
|
|
@ -49,15 +49,14 @@ ENV LANG en_US.UTF-8
|
||||||
ENV LANGUAGE en_US:en
|
ENV LANGUAGE en_US:en
|
||||||
ENV LC_ALL en_US.UTF-8
|
ENV LC_ALL en_US.UTF-8
|
||||||
|
|
||||||
# Install Elixir deps
|
|
||||||
# RUN mix archive.install github hexpm/hex branch latest
|
|
||||||
RUN mix deps.get && mix deps.compile
|
|
||||||
RUN MIX_ENV=test mix deps.get && MIX_ENV=test mix deps.compile
|
|
||||||
|
|
||||||
# Create app directory and copy the Elixir projects into it.
|
# Create app directory and copy the Elixir projects into it.
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . ./
|
COPY . ./
|
||||||
|
|
||||||
|
# Install Elixir deps
|
||||||
|
# RUN mix archive.install github hexpm/hex branch latest
|
||||||
|
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
|
# Gives us iex shell history
|
||||||
ENV ERL_AFLAGS="-kernel shell_history enabled"
|
ENV ERL_AFLAGS="-kernel shell_history enabled"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue