diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 991b4dc..ef7c2f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 @@ -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: