Skip to content

Commit 0d1e0b4

Browse files
committed
Try 'argLine' I guess?
1 parent 21e89a0 commit 0d1e0b4

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

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

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

3434
- name: Run unit tests
35-
run: ./mvnw test
36-
env:
37-
MONGODB_URI: ${{ secrets.MFLIX_URI }}
35+
run: ./mvnw test -Dspring.data.mongodb.uri="${{ secrets.MFLIX_URI }}"
3836

3937
- name: Run integration tests
40-
run: ./mvnw test -Dtest=MongoDBSearchIntegrationTest
41-
env:
42-
MONGODB_URI: ${{ secrets.MFLIX_URI }}
43-
ENABLE_SEARCH_TESTS: true
38+
run: ./mvnw test -Dtest=MongoDBSearchIntegrationTest -Dspring.data.mongodb.uri="${{ secrets.MFLIX_URI }}" -DENABLE_SEARCH_TESTS=true
4439
continue-on-error: true
4540

4641
- name: Upload test results

server/java-spring/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,6 @@
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 environment variables to test JVM -->
142-
<environmentVariables>
143-
<MONGODB_URI>${env.MONGODB_URI}</MONGODB_URI>
144-
<ENABLE_SEARCH_TESTS>${env.ENABLE_SEARCH_TESTS}</ENABLE_SEARCH_TESTS>
145-
</environmentVariables>
146141
</configuration>
147142
</plugin>
148143

0 commit comments

Comments
 (0)