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 201079f
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,30 @@ 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 hosts entries
run: |
echo "
127.0.0.1 localauth0
127.0.0.1 redis
" | 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 +69,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 +97,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 201079f

Please sign in to comment.