fix(deps): bump software.amazon.awssdk:bom from 2.26.6 to 2.26.7 #11737
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/default_db?authSource=admin | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 | |
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-server-spring-data-mongo:test | |
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | |
if: failure() # only upload if previous step failed | |
with: | |
name: mongodb-test-results | |
path: | | |
build/reports/ | |
*/build/test-results/**/*.xml | |
retention-days: 7 | |
- name: Assert use of MongoDB | |
run: "docker logs test_mongo | grep -F 'createCollection' | grep -F 'default_db.'" | |
- name: Stop MongoDB | |
run: docker stop test_mongo | |