diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 55e512be3b..cd86e8a4ca 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -46,7 +46,7 @@ jobs: strategy: fail-fast: false matrix: - java: [ 11 ] + java: [ 8, 11 ] steps: - uses: actions/checkout@v2 - name: Set up JDK @@ -90,6 +90,9 @@ jobs: - name: Maven Install with Code Coverage if: matrix.os != 'windows' && startsWith(matrix.java, '8') run: mvn -B clean install -D enable-ci --file pom.xml + - name: Codecov Report + if: matrix.os != 'windows' && startsWith(matrix.java, '8') + uses: codecov/codecov-action@v2.1.0 # JDK 11+ - name: Maven Install without Code Coverage if: matrix.os == 'windows' && !startsWith(matrix.java, '8') @@ -101,6 +104,3 @@ jobs: env: MAVEN_OPTS: ${{ env.JAVA_11_PLUS_MAVEN_OPTS }} run: mvn -B clean install -D enable-ci --file pom.xml "-Dsurefire.argLine=--add-opens java.base/java.net=ALL-UNNAMED" - - name: Codecov Report - if: matrix.os != 'windows' && startsWith(matrix.java, '11') - uses: codecov/codecov-action@v2.1.0