Skip to content

check mongo step removed, mongo service healthchecks configured #62

Merged
merged 1 commit into from
May 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ jobs:
services:
mongodb:
image: mongo:5.0.10
options: >-
--health-cmd "echo 'db.runCommand("ping").ok' | mongo --host localhost --quiet --eval 'db.version()'"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 27017:27017
steps:
Expand All @@ -23,10 +28,6 @@ jobs:
- name: build
run: |
dotnet build src/Horarium.sln -c Release
- name: check mongo
run: |
sleep 5
mongo --host localhost --eval "db.version()"
- name: run unit tests
run: |
dotnet test src/Horarium.Test/Horarium.Test.csproj -c Release --no-restore
Expand Down