diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 23b2e21..5fb4085 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -19,3 +19,8 @@ jobs: cache: maven - name: Build with Maven run: mvn clean verify package + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true diff --git a/README.md b/README.md index aa3ebdb..fc50fe7 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Type Class resolution for Java +[![codecov](https://codecov.io/gh/Garciat/java-type-classes/branch/main/graph/badge.svg)](https://codecov.io/gh/Garciat/java-type-classes) + See: https://garciat.com/posts/java-type-classes/ The core API of this library is: diff --git a/pom.xml b/pom.xml index e9c6aa6..3ffc89f 100644 --- a/pom.xml +++ b/pom.xml @@ -89,6 +89,25 @@ maven-surefire-plugin 3.5.4 + + org.jacoco + jacoco-maven-plugin + 0.8.12 + + + + prepare-agent + + + + report + verify + + report + + + + maven-jar-plugin 3.5.0 @@ -126,6 +145,10 @@ maven-compiler-plugin + + org.jacoco + jacoco-maven-plugin + \ No newline at end of file