compile the code first with latest everything. then run parameterized tests without recompiling.
@@ -12,7 +12,7 @@ jobs:
matrix:
java: [ 11, 15 ]
mongo: [ 4.4.4, 4.2.13, 4.0.23, 3.6.23 ]
- driver: [ 4.2.2, 4.1.0 ]
+ driver: [ 4.2.2, 4.1.0, 4.0.0 ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
@@ -25,10 +25,12 @@ jobs:
path: ~/.m2
key: \${{ runner.os }}-m2-\${{ hashFiles('**/pom.xml') }}
restore-keys: \${{ runner.os }}-m2
- - name: Build with Maven
+ - name: Compile Code
+ run: mvn install -DskipTests
+ - name: Run Tests
env:
MONGODB: ${{ matrix.mongo }}
- run: mvn -B verify --file pom.xml -Ddriver.version=${{ matrix.driver }}
+ run: mvn surefire:test -Ddriver.version=${{ matrix.driver }}
- uses: actions/upload-artifact@v2
if: always()
with:
