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"