From e5c8fe9e1097810f6ff5f6aed787b0571cd4beb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Poirier=20Th=C3=A9or=C3=AAt?= Date: Wed, 3 Jan 2024 13:23:48 -0500 Subject: [PATCH] [internal] configure mongodb for build --- .github/workflows/build.yml | 9 +++++++++ docker-compose.yaml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 48b2d6c0..cf275362 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,8 +25,17 @@ jobs: automation_test: name: Automation Test runs-on: ubuntu-latest + services: + mongodb: + image: "mongo:5.0.0" + ports: + - "27017:27017" + options: | + --health-cmd "mongo --eval 'db.runCommand({ connectionStatus: 1 })'" + env: DATABASE_URL: 'mysql://root@127.0.0.1:3306/draw' + MONGODB_URL: 'mongodb://127.0.0.1' strategy: fail-fast: false matrix: diff --git a/docker-compose.yaml b/docker-compose.yaml index d94cbf4a..0c614e00 100755 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -53,7 +53,7 @@ services: mongodb: container_name: draw_mongodb - image: "mongo:3.6.0" + image: "mongo:5.0.0" volumes: - "data_mongo:/data/db"