From cc5bed228c110b3f63bd894ebd7a6a5d47c24ecd Mon Sep 17 00:00:00 2001 From: Malte Hansen Date: Tue, 19 Nov 2024 13:35:53 +0100 Subject: [PATCH] Add mongodb to github actions --- .github/workflows/deploy-docker.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/deploy-docker.yml b/.github/workflows/deploy-docker.yml index 3e2aed6..25d8487 100644 --- a/.github/workflows/deploy-docker.yml +++ b/.github/workflows/deploy-docker.yml @@ -57,6 +57,10 @@ jobs: test: runs-on: ubuntu-latest needs: [build] + env: + REDIS_HOST: redis + REDIS_PORT: '6379' + MONGO_URI: 'mongodb://mongo/collab_db' steps: - name: Checkout repository uses: actions/checkout@v4 @@ -77,6 +81,10 @@ jobs: uses: supercharge/redis-github-action@1.7.0 with: redis-version: 7 + - name: Start MongoDB + uses: supercharge/mongodb-github-action@1.11.0 + with: + mongodb-version: '8.0' - name: Start application run: | npm run start &