File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,16 @@ jobs:
108108 name : " Build Project"
109109 needs : build_groovy
110110 runs-on : ubuntu-latest
111+ services :
112+ mongodb :
113+ image : mongo:8
114+ ports :
115+ - 27017:27017
116+ options : >-
117+ --health-cmd "mongosh --eval 'db.adminCommand(\"ping\")'"
118+ --health-interval 10s
119+ --health-timeout 5s
120+ --health-retries 5
111121 steps :
112122 - name : " 📥 Checkout project"
113123 uses : actions/checkout@v4
@@ -127,10 +137,6 @@ jobs:
127137 key : cache-local-maven-${{ github.sha }}
128138 - name : " 🪶 Add mavenLocal repository to build"
129139 run : sed -i 's|// mavenLocal() // Keep|mavenLocal() // Keep|' build.gradle
130- - name : " ▶️ Start MongoDB (needed for some tests)"
131- uses : supercharge/mongodb-github-action@90004df786821b6308fb02299e5835d0dae05d0d # v1.12.0 (Use commit sha as this is a 3rd party action)
132- with :
133- mongodb-version : ' 8'
134140 - name : " 🔨 Build and test the project using the locally built Groovy snapshot"
135141 env :
136142 GITHUB_MAVEN_PASSWORD : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments