Skip to content

Commit

Permalink
CI now runs MongoDB tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Almighty-Satan committed May 24, 2023
1 parent 770606f commit 3fa1b0e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ permissions: {}
jobs:
build:
runs-on: ubuntu-latest
services:
mongo:
image: mongo
ports:
- 27017:27017
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
Expand All @@ -17,4 +22,6 @@ jobs:
- name: Set up Gradle
uses: gradle/gradle-build-action@v2
- name: Gradlew build
env:
MONGO_ADDRESS: "localhost:27017"
run: ./gradlew build
6 changes: 6 additions & 0 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ permissions: {}
jobs:
build:
runs-on: ubuntu-latest
services:
mongo:
image: mongo
ports:
- 27017:27017
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
Expand All @@ -20,6 +25,7 @@ jobs:
uses: gradle/gradle-build-action@v2
- name: Gradlew clean publishReleasePublicationToMavenRepository
env:
MONGO_ADDRESS: "localhost:27017"
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
OSSRH_USER: ${{ secrets.OSSRH_USER }}
Expand Down

0 comments on commit 3fa1b0e

Please sign in to comment.