Skip to content

Commit

Permalink
check mongo step removed, mongo service healthchecks configured (#62)
Browse files Browse the repository at this point in the history
Co-authored-by: e.stoletov <[email protected]>
  • Loading branch information
johnstoletov and e.stoletov authored May 16, 2023
1 parent 3679e35 commit 718d7d4
Showing 1 changed file with 5 additions and 4 deletions.
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

0 comments on commit 718d7d4

Please sign in to comment.