From 13552909ac45c2eae8e933b5ec817cd17ee92548 Mon Sep 17 00:00:00 2001 From: sukidayou <2682523907@qq.com> Date: Thu, 26 Dec 2024 17:03:44 +0800 Subject: [PATCH] feat: test ci MongoDB --- .github/workflows/maven-ci.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/maven-ci.yml b/.github/workflows/maven-ci.yml index c220517..bb078f9 100644 --- a/.github/workflows/maven-ci.yml +++ b/.github/workflows/maven-ci.yml @@ -5,12 +5,6 @@ on: [push, pull_request] jobs: build: runs-on: ubuntu-latest - services: - mongodb: - image: mongo - ports: - - 27017:27017 - options: --health-cmd="mongo --eval 'db.adminCommand(\"ping\")'" --health-interval=20s --health-timeout=5s --health-retries=5 --health-start-period=30s steps: - name: Checkout @@ -18,6 +12,11 @@ jobs: with: fetch-depth: '0' + - name: Start MongoDB + uses: supercharge/mongodb-github-action@1.11.0 + with: + mongodb-version: 4.2 + - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: