Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
Fixed starting mongodb
  • Loading branch information
blaz-cerpnjak authored Mar 6, 2024
1 parent 9ed8c77 commit 92154b2
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,15 @@ jobs:
build-test-package:
runs-on: ubuntu-latest

services:
mongodb:
image: mongo:latest
ports:
- 27017:27017
options: --health-cmd "mongo --eval 'db.adminCommand(\"ping\")'" --health-interval 10s --health-timeout 5s --health-retries 3

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}

- name: Set up JDK 21
uses: actions/setup-java@v3
with:
Expand Down

0 comments on commit 92154b2

Please sign in to comment.