@@ -11,7 +11,6 @@ permissions:
1111 packages : read
1212jobs :
1313 datastore-build :
14- if : false # remove after publishing
1514 name : " Build Datastore Project"
1615 runs-on : ubuntu-24.04
1716 strategy :
@@ -35,38 +34,42 @@ jobs:
3534 env :
3635 GITHUB_MAVEN_PASSWORD : ${{ secrets.GITHUB_TOKEN }}
3736 run : ./gradlew cleanTest build --continue -PonlyDatastoreTests
38- # mongodb-build:
39- # if: false # TODO: Remove once we can run mongo
40- # name: "Build Mongodb Project"
41- # runs-on: ubuntu-24.04
42- # strategy:
43- # fail-fast: false
44- # matrix:
45- # java: [ 17, 21 ]
46- # mongodb-version: [ '4', '5', '6', '7', '8' ]
47- # steps:
48- # - name: "📥 Checkout the repository"
49- # uses: actions/checkout@v4
50- # - name: "☕️ Setup JDK"
51- # uses: actions/setup-java@v4
52- # with:
53- # java-version: ${{ matrix.java }}
54- # distribution: liberica
55- # - name: "🐘 Setup Gradle"
56- # uses: gradle/actions/setup-gradle@v4
57- # with:
58- # develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
59- # - name: "▶️ Start MongoDB (needed for some tests)"
60- # uses: supercharge/mongodb-github-action@90004df786821b6308fb02299e5835d0dae05d0d # v1.12.0 (Use commit sha as this is a 3rd party action)
61- # with:
62- # mongodb-version: ${{ matrix.mongodb-version }}
63- # - name: "🔨 Run Build"
64- # id: build
65- # env:
66- # GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
67- # run: ./gradlew cleanTest build --continue -PonlyMongodbTests
37+ mongodb-build :
38+ name : " Build Mongodb Project"
39+ runs-on : ubuntu-24.04
40+ strategy :
41+ fail-fast : false
42+ matrix :
43+ java : [ 17, 21 ]
44+ mongodb-version : [ '5', '6', '7', '8' ]
45+ services :
46+ mongodb :
47+ image : mongo:${{ matrix.mongodb-version }}
48+ ports :
49+ - 27017:27017
50+ options : >-
51+ --health-cmd "mongosh --eval 'db.adminCommand(\"ping\")'"
52+ --health-interval 10s
53+ --health-timeout 5s
54+ --health-retries 5
55+ steps :
56+ - name : " 📥 Checkout the repository"
57+ uses : actions/checkout@v4
58+ - name : " ☕️ Setup JDK"
59+ uses : actions/setup-java@v4
60+ with :
61+ java-version : ${{ matrix.java }}
62+ distribution : liberica
63+ - name : " 🐘 Setup Gradle"
64+ uses : gradle/actions/setup-gradle@v4
65+ with :
66+ develocity-access-key : ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
67+ - name : " 🔨 Run Build"
68+ id : build
69+ env :
70+ GITHUB_MAVEN_PASSWORD : ${{ secrets.GITHUB_TOKEN }}
71+ run : ./gradlew cleanTest build --continue -PonlyMongodbTests
6872 hibernate5-build :
69- if : false # TODO: Remove after publishing to core
7073 name : " Build Hibernate5 Project"
7174 runs-on : ubuntu-24.04
7275 strategy :
9396 publish :
9497 if : github.event_name == 'push'
9598 name : " Publish Snapshot"
96- # needs: [datastore-build, hibernate5-build, mongodb-build] # Fix once mongo db action is added
99+ needs : [datastore-build, hibernate5-build, mongodb-build]
97100 runs-on : ubuntu-24.04
98101 steps :
99102 - name : " 📥 Checkout the repository"
@@ -107,10 +110,10 @@ jobs:
107110 uses : gradle/actions/setup-gradle@v4
108111 with :
109112 develocity-access-key : ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
110- - name : " 📤 Publish Snapshot to repo.grails.org "
113+ - name : " 📤 Publish Snapshot artifacts "
111114 env :
112115 GITHUB_MAVEN_PASSWORD : ${{ secrets.GITHUB_TOKEN }}
113- GRADLE_PUBLISH_RELEASE : ' false'
116+ GRAILS_PUBLISH_RELEASE : ' false'
114117 MAVEN_PUBLISH_URL : ${{ secrets.GRAILS_NEXUS_PUBLISH_SNAPSHOT_URL }}
115118 MAVEN_PUBLISH_USERNAME : ${{ secrets.NEXUS_USER }}
116119 MAVEN_PUBLISH_PASSWORD : ${{ secrets.NEXUS_PW }}
0 commit comments