Skip to content

add missing JWT_CONFIG #241

add missing JWT_CONFIG

add missing JWT_CONFIG #241

Workflow file for this run

name: CI
on:
push:
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@a6e26b22319003294c58386b6f25edbc7336819a # v1.18.0
with:
otp-version: 26
elixir-version: 1.17
- run: cd neurow && mix format --check-formatted
- run: cd neurow && mix deps.get
- run: cd neurow && mix compile --warnings-as-errors
- run: epmd -daemon
- run: cd neurow && mix test
ci-loadtest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@a6e26b22319003294c58386b6f25edbc7336819a # v1.18.0
with:
otp-version: 26
elixir-version: 1.17
- run: cd load_test && mix format --check-formatted
- run: cd load_test && mix deps.get
- run: cd load_test && mix compile --warnings-as-errors
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
cd neurow
docker build . -t neurow:latest
docker run -e JWT_CONFIG="{\"local_name\":\"neurow\",\"target_service\":\"target",\"algorithm\":\"HS256\",\"secret\":\"secret\"}" -d --name neurow_test neurow:latest
sleep 10
docker ps -a
docker logs neurow_test
docker exec neurow_test curl -v --retry 5 --retry-connrefused --retry-max-time 30 --retry-delay 6 http://localhost:3000/ping
docker stop neurow_test
docker rm neurow_test