Skip to content

Commit

Permalink
[internal] configure mongodb for build
Browse files Browse the repository at this point in the history
  • Loading branch information
mpoiriert committed Jan 3, 2024
1 parent ccb1595 commit e5c8fe9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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://[email protected]:3306/draw'
MONGODB_URL: 'mongodb://127.0.0.1'
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit e5c8fe9

Please sign in to comment.