Skip to content

Commit

Permalink
Run node in background
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz Hannemann committed Jan 23, 2024
1 parent d5251d8 commit f16c96b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,13 @@ jobs:

# Start mongo container and app before starting
run: |
cp docker-compose.mongo.yaml docker-compose.yaml
docker-compose up --build -d
npm run start
npm run start &
- name: Fetch Bearer Token
run: ACCESS_TOKEN=$(curl -d 'username=ingestor' -d 'password=aman' http://localhost:3000/api/v3/auth/login | jq -r ".access_token")
run: |
ACCESS_TOKEN=$(curl --retry 30 --retry-connrefused --retry-delay 20 -d 'username=ingestor' -d 'password=aman' http://localhost:3000/api/v3/auth/login | jq -r ".access_token")
# Test the generated OpenAPI definition
# https://github.com/marketplace/actions/schemathesis
Expand Down
9 changes: 9 additions & 0 deletions docker-compose.mongo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
services:
mongodb:
image: bitnami/mongodb:4.2
volumes:
- mongodb_data:/bitnami

volumes:
mongodb_data:
driver: local

0 comments on commit f16c96b

Please sign in to comment.