diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 55fd9fd..cfc1f96 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -41,7 +41,11 @@ jobs: ${{ runner.os }}-maven- - name: Build and test with Maven - run: mvn -B -Dgpg.skip -Drelease=true verify + run: mvn -B -Dgpg.skip -Drelease=true -Pcoverage verify + + - name: Upload coverage report + if: matrix.java == env.RELEASE_JAVA_VERSION + uses: codecov/codecov-action@v1 release: if: github.ref == 'refs/heads/master' diff --git a/pom.xml b/pom.xml index 435e523..2211d2b 100644 --- a/pom.xml +++ b/pom.xml @@ -287,6 +287,32 @@ + + coverage + + + + org.jacoco + jacoco-maven-plugin + 0.8.6 + + + + prepare-agent + + + + report + test + + report + + + + + + + run-sample