File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ jobs:
3232 run : chmod +x mvnw
3333
3434 - name : Run unit tests
35- run : ./mvnw test -Dspring.data.mongodb.uri ="${{ secrets.MFLIX_URI }}"
35+ run : ./mvnw test -DMONGODB_URI ="${{ secrets.MFLIX_URI }}"
3636
3737 - name : Run integration tests
38- run : ./mvnw test -Dtest=MongoDBSearchIntegrationTest -Dspring.data.mongodb.uri ="${{ secrets.MFLIX_URI }}" -DENABLE_SEARCH_TESTS=true
38+ run : ./mvnw test -Dtest=MongoDBSearchIntegrationTest -DMONGODB_URI ="${{ secrets.MFLIX_URI }}" -DENABLE_SEARCH_TESTS=true
3939 continue-on-error : true
4040
4141 - name : Upload test results
Original file line number Diff line number Diff line change 138138 -javaagent:${settings.localRepository} /net/bytebuddy/byte-buddy-agent/${byte-buddy.version} /byte-buddy-agent-${byte-buddy.version} .jar
139139 -Xshare:off
140140 </argLine >
141+ <!-- Pass system properties as environment variables to test JVM -->
142+ <environmentVariables >
143+ <MONGODB_URI >${MONGODB_URI} </MONGODB_URI >
144+ <ENABLE_SEARCH_TESTS >${ENABLE_SEARCH_TESTS} </ENABLE_SEARCH_TESTS >
145+ </environmentVariables >
141146 </configuration >
142147 </plugin >
143148
You can’t perform that action at this time.
0 commit comments