Rolling back some other changes
This commit is contained in:
parent
ebdb8b542d
commit
41d6eabd8c
3 changed files with 5 additions and 8 deletions
5
.github/workflows/lint_and_test.yml
vendored
5
.github/workflows/lint_and_test.yml
vendored
|
|
@ -37,7 +37,7 @@ jobs:
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
- name: Build and Run Docker image
|
- name: Run Docker image
|
||||||
run: docker compose up --detach
|
run: docker compose up --detach
|
||||||
|
|
||||||
# NOTE: All exec commands use the -T flag to compensate for
|
# NOTE: All exec commands use the -T flag to compensate for
|
||||||
|
|
@ -56,6 +56,3 @@ jobs:
|
||||||
|
|
||||||
- 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
|
||||||
|
|
||||||
- name: Shut down Docker containers
|
|
||||||
run: docker compose down
|
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ services:
|
||||||
- MIX_ENV=test
|
- MIX_ENV=test
|
||||||
volumes:
|
volumes:
|
||||||
- '.:/app'
|
- '.:/app'
|
||||||
|
# These lines ensure the deps can be saved as build artifacts for caching
|
||||||
- '/app/deps'
|
- '/app/deps'
|
||||||
- '/app/_build'
|
- '/app/_build'
|
||||||
ports:
|
ports:
|
||||||
|
|
|
||||||
|
|
@ -45,9 +45,9 @@ RUN export PIPX_HOME=/opt/pipx && \
|
||||||
|
|
||||||
# Set the locale
|
# Set the locale
|
||||||
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
|
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
|
||||||
ENV LANG en_US.UTF-8
|
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
|
||||||
|
|
||||||
# Create app directory and copy the Elixir projects into it.
|
# Create app directory and copy the Elixir projects into it.
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
@ -57,7 +57,6 @@ COPY . ./
|
||||||
# RUN mix archive.install github hexpm/hex branch latest
|
# RUN mix archive.install github hexpm/hex branch latest
|
||||||
RUN MIX_ENV=dev mix deps.get && MIX_ENV=dev mix deps.compile
|
RUN MIX_ENV=dev mix deps.get && MIX_ENV=dev mix deps.compile
|
||||||
RUN MIX_ENV=test mix deps.get && MIX_ENV=test mix deps.compile
|
RUN MIX_ENV=test mix deps.get && MIX_ENV=test mix deps.compile
|
||||||
RUN rm -rf deps/*/.fetch
|
|
||||||
# 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