Skip to content

Commit c612218

Browse files
committed
Zillionth time is the charm?
1 parent 1974e1e commit c612218

2 files changed

Lines changed: 6 additions & 14 deletions

File tree

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

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
run:
1818
working-directory: server/java-spring
1919

20+
env:
21+
MONGODB_URI: ${{ secrets.MFLIX_URI }}
22+
ENABLE_SEARCH_TESTS: true
23+
2024
steps:
2125
- name: Checkout code
2226
uses: actions/checkout@v5
@@ -32,17 +36,10 @@ jobs:
3236
run: chmod +x mvnw
3337

3438
- name: Run unit tests
35-
run: |
36-
export MONGODB_URI="${{ secrets.MFLIX_URI }}"
37-
./mvnw test
38-
shell: bash
39+
run: ./mvnw test
3940

4041
- name: Run integration tests
41-
run: |
42-
export MONGODB_URI="${{ secrets.MFLIX_URI }}"
43-
export ENABLE_SEARCH_TESTS=true
44-
./mvnw test -Dtest=MongoDBSearchIntegrationTest
45-
shell: bash
42+
run: ./mvnw test -Dtest=MongoDBSearchIntegrationTest
4643
continue-on-error: true
4744

4845
- 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-
<!-- Inherit all environment variables from parent process -->
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)