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 2462197
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,22 @@ 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: 13
otp-version: 25

# 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

# Define how to cache deps. Restores existing cache if present.
- name: Cache deps
id: cache-deps
Expand Down Expand Up @@ -53,10 +61,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 +89,15 @@ jobs:
ports:
- 6379:6379

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

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

0 comments on commit 2462197

Please sign in to comment.