Skip to content

Commit

Permalink
OGM-1588 Update remote MongoDB to 7 in the GitHub workflow
Browse files Browse the repository at this point in the history
We still test the default build using the embedded MongoDB 3.6.

Tests for calls to stored procedures are disabled for the remote
server because MongoDB 7.0 doesn't support `$eval` anymore.
  • Loading branch information
DavideD committed Sep 3, 2024
1 parent 50810cd commit 6309e37
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: 3.6.23
mongodb-version: 7.0.14
mongodb-port: 27017
- name: Run tests
run: |
Expand Down
13 changes: 13 additions & 0 deletions mongodb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,19 @@
<properties>
<datastoreProvider>mongodb</datastoreProvider>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<!-- MongoDB 7.0 (the one we use for remote testing on CI) doesn't support `$eval` anymore -->
<exclude>**/PositionalParametersStoredProcedureCallTest.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 6309e37

Please sign in to comment.