Skip to content

fix(deps): bump org.springframework.boot:spring-boot-dependencies #1724

fix(deps): bump org.springframework.boot:spring-boot-dependencies

fix(deps): bump org.springframework.boot:spring-boot-dependencies #1724

Workflow file for this run

# This workflow tests the feature of using an external MongoDB for tests
name: Java Test MongoDB
on:
push:
branches:
- main
pull_request:
jobs:
# Test with real MongoDB
test-mongodb:
runs-on: ubuntu-latest
timeout-minutes: 60
env:
TEST_MONGODB_CONNECTION_STRING: mongodb://test:example@localhost:27017/testdb?authSource=admin
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
- name: Set up JDK 17
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
with:
distribution: 'temurin'
java-version: 17
cache: 'gradle'
- name: Start MongoDB
run: docker run -d -e MONGO_INITDB_ROOT_USERNAME=test -e MONGO_INITDB_ROOT_PASSWORD=example -p 27017:27017 --name test_mongo mongo:5.0.20-focal
- name: Test with Gradle
run: ./gradlew :sda-commons-starter-mongodb:test
- name: Assert use of MongoDB
run: "docker logs test_mongo | grep -F 'createCollection' | grep -F 'testdb.'"
- name: Stop MongoDB
run: docker stop test_mongo