From 92154b269164337ff575d2c3faa4027f0621f2b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20=C4=8Cerpnjak?= Date: Wed, 6 Mar 2024 18:32:30 +0100 Subject: [PATCH] Update main.yml Fixed starting mongodb --- .github/workflows/main.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 051f8ec..3033b3f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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/mongodb-github-action@1.10.0 + with: + mongodb-version: ${{ matrix.mongodb-version }} + - name: Set up JDK 21 uses: actions/setup-java@v3 with: