try a driver matrix
@@ -12,6 +12,7 @@ jobs:
matrix:
java: [ 11, 15 ]
mongo: [ 4.4.4, 4.2.13, 4.0.23, 3.6.23 ]
+ driver: [ 4.1.2, 4.0.6 ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
@@ -27,7 +28,7 @@ jobs:
- name: Build with Maven
env:
MONGODB: ${{ matrix.mongo }}
- run: mvn -B verify --file pom.xml
+ run: mvn -B verify --file pom.xml -Ddriver.version=${{ matrix.driver }}
- uses: actions/upload-artifact@v2
if: always()
with:
