Skip to content

Commit b38963e

Browse files
committed
Pass MONGODB_URI directly to maven when invoking it
1 parent 7ab8455 commit b38963e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/run-java-spring-boot-tests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,14 @@ jobs:
3232
run: chmod +x mvnw
3333

3434
- name: Run unit tests
35-
run: ./mvnw test
35+
run: ./mvnw test -DMONGODB_URI="${MONGODB_URI}"
3636
env:
3737
MONGODB_URI: ${{ secrets.MFLIX_URI }}
3838

3939
- name: Run integration tests
40-
run: ./mvnw test -Dtest=MongoDBSearchIntegrationTest
40+
run: ./mvnw test -Dtest=MongoDBSearchIntegrationTest -DMONGODB_URI="${MONGODB_URI}" -DENABLE_SEARCH_TESTS=true
4141
env:
4242
MONGODB_URI: ${{ secrets.MFLIX_URI }}
43-
ENABLE_SEARCH_TESTS: true
4443
continue-on-error: true
4544

4645
- name: Upload test results

0 commit comments

Comments
 (0)