Skip to content

Commit

Permalink
Fix localauth0 missing in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MaeIsBad committed Nov 20, 2023
1 parent 929c4e4 commit 2503a77
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,25 @@ on:
jobs:
ci:
runs-on: ubuntu-latest
container:
image: elixir:1.13
env:
MIX_ENV: test
steps:
- uses: erlef/setup-beam@v1
with:
elixir-version: 1.13
otp-version: 24

# Check out the code.
- name: Checkout
uses: actions/checkout@v3

- name: Restart localuth0
# Restart localauth0 after checking out so it can load the config
run: docker restart localauth0

- name: Add localauth0 hosts entry
run: echo "127.0.0.1 localauth0" | sudo tee /etc/hosts

# Define how to cache deps. Restores existing cache if present.
- name: Cache deps
id: cache-deps
Expand Down Expand Up @@ -53,10 +64,6 @@ jobs:
run: |
mix deps.clean --all
mix clean
- name: Elixir setup
run: |
mix local.hex --force
mix local.rebar --force
- name: Deps get
run: mix deps.get
- name: Dependencies Check
Expand Down Expand Up @@ -85,6 +92,16 @@ jobs:
ports:
- 6379:6379

localauth0:
image: public.ecr.aws/c6i9l4r6/localauth0:0.6.2
ports:
- 3000:3000
env:
LOCALAUTH0_CONFIG_PATH: /repo/localauth0.toml
volumes:
- ./:/repo:ro
options: --name localauth0

alls-green:
if: always()
needs:
Expand Down

0 comments on commit 2503a77

Please sign in to comment.