diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index cf118cf..1341272 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -31,3 +31,9 @@ jobs: - name: Build with Maven run: mvn -B verify --file pom.xml + + - name: CI Badges + uses: gaelgirodon/ci-badges-action@v1 + with: + gist-id: 4b8ce8c93b2a3a92b777d51914cb1e6b + token: ${{ secrets.GIST_TOKEN }} diff --git a/README.MD b/README.MD index 6b96047..4a39805 100644 --- a/README.MD +++ b/README.MD @@ -3,6 +3,8 @@ [![Java CI with Maven](https://github.com/Afrouper/sungrow-api-client/actions/workflows/maven.yml/badge.svg)](https://github.com/Afrouper/sungrow-api-client/actions/workflows/maven.yml) [![CodeQL](https://github.com/Afrouper/sungrow-api-client/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/Afrouper/sungrow-api-client/actions/workflows/github-code-scanning/codeql) [![Dependabot Updates](https://github.com/Afrouper/sungrow-api-client/actions/workflows/dependabot/dependabot-updates/badge.svg)](https://github.com/Afrouper/sungrow-api-client/actions/workflows/dependabot/dependabot-updates) +![Tests](https://img.shields.io/endpoint?label=Tests&url=https://gist.githubusercontent.com/Afrouper/4b8ce8c93b2a3a92b777d51914cb1e6b/raw/9352822e575e3f75afef51f26f1b5e9125c526dc/sungrow-api-client-junit-tests.json) +![Tests](https://img.shields.io/endpoint?label=Test%20Coverage&url=https://gist.githubusercontent.com/Afrouper/4b8ce8c93b2a3a92b777d51914cb1e6b/raw/cb93d70bb0200fe0aa820ea4231f625bb71d5c65/sungrow-api-client-jacoco-coverage.json) API Client which uses the official API from the [sungrow developer portal](https://developer-api.isolarcloud.com/). diff --git a/pom.xml b/pom.xml index 740b406..f258ed9 100644 --- a/pom.xml +++ b/pom.xml @@ -59,6 +59,42 @@ maven-surefire-plugin 3.5.2 + + org.jacoco + jacoco-maven-plugin + 0.8.12 + + + + prepare-agent + + + + report + verify + + report + + + ${project.build.directory}/site/jacoco + + + + report-xml + verify + + report + + + ${project.build.directory}/jacoco.exec + ${project.reporting.outputDirectory}/jacoco + true + false + + + + +