diff --git a/.github/workflows/pr-builder.yml b/.github/workflows/pr-builder.yml index 3ca871d..634b7c1 100644 --- a/.github/workflows/pr-builder.yml +++ b/.github/workflows/pr-builder.yml @@ -39,3 +39,11 @@ jobs: - name: Build with Maven run: mvn clean install -U -B + - name: Generate coverage report + run: mvn test jacoco:report + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files : target/site/jacoco/jacoco.xml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..9571a5f --- /dev/null +++ b/codecov.yml @@ -0,0 +1,16 @@ + +codecov: + require_ci_to_pass: yes + notify: + wait_for_ci: yes +coverage: + status: + project: + default: + enabled: yes + threshold: null + target: auto + patch: + default: + target: 80% + threshold: 40% diff --git a/pom.xml b/pom.xml index 3b8725e..1c692d1 100644 --- a/pom.xml +++ b/pom.xml @@ -280,6 +280,8 @@ -Xdoclint:none + + 0.8.12 @@ -380,5 +382,7 @@ 4.12 UTF-8 source-release - + + 0.8.12 +