From f05bb50e222ca2cf6efdf49b63325669d8c292b4 Mon Sep 17 00:00:00 2001 From: christian Date: Fri, 3 Jan 2025 23:12:15 +0100 Subject: [PATCH 1/6] Update workflows --- .github/workflows/maven.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index cf118cf..d59d40b 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: ci-badges + token: ${{ secrets.GIST_TOKEN }} From dbf52bfaeccf9f21e80514dfcb828fc292e67497 Mon Sep 17 00:00:00 2001 From: christian Date: Fri, 3 Jan 2025 23:14:23 +0100 Subject: [PATCH 2/6] Update workflows --- .github/workflows/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index d59d40b..1341272 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -35,5 +35,5 @@ jobs: - name: CI Badges uses: gaelgirodon/ci-badges-action@v1 with: - gist-id: ci-badges + gist-id: 4b8ce8c93b2a3a92b777d51914cb1e6b token: ${{ secrets.GIST_TOKEN }} From 581cc26681c39ceabba7ea7022fe1ec9f2fd3bd8 Mon Sep 17 00:00:00 2001 From: christian Date: Fri, 3 Jan 2025 23:33:21 +0100 Subject: [PATCH 3/6] Badges and Jacoco --- .github/workflows/maven.yml | 2 +- README.MD | 1 + pom.xml | 20 ++++++++++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 1341272..d59d40b 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -35,5 +35,5 @@ jobs: - name: CI Badges uses: gaelgirodon/ci-badges-action@v1 with: - gist-id: 4b8ce8c93b2a3a92b777d51914cb1e6b + gist-id: ci-badges token: ${{ secrets.GIST_TOKEN }} diff --git a/README.MD b/README.MD index 6b96047..cbcfd28 100644 --- a/README.MD +++ b/README.MD @@ -3,6 +3,7 @@ [![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?url=https://gist.githubusercontent.com/Afrouper/4b8ce8c93b2a3a92b777d51914cb1e6b/raw/9352822e575e3f75afef51f26f1b5e9125c526dc/sungrow-api-client-junit-tests.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..55d6b08 100644 --- a/pom.xml +++ b/pom.xml @@ -59,6 +59,26 @@ maven-surefire-plugin 3.5.2 + + org.jacoco + jacoco-maven-plugin + 0.8.12 + + + + prepare-agent + + + + report + prepare-package + + report + + + + + From eeb545f6dc004b3974d616d8d8b93c3609f3334f Mon Sep 17 00:00:00 2001 From: christian Date: Fri, 3 Jan 2025 23:40:28 +0100 Subject: [PATCH 4/6] Jacoco --- pom.xml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 55d6b08..f258ed9 100644 --- a/pom.xml +++ b/pom.xml @@ -71,10 +71,26 @@ report - prepare-package + verify report + + ${project.build.directory}/site/jacoco + + + + report-xml + verify + + report + + + ${project.build.directory}/jacoco.exec + ${project.reporting.outputDirectory}/jacoco + true + false + From f1822a8545b29724b63879f4e2bc30fb03924255 Mon Sep 17 00:00:00 2001 From: christian Date: Fri, 3 Jan 2025 23:43:40 +0100 Subject: [PATCH 5/6] Badges --- .github/workflows/maven.yml | 2 +- README.MD | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index d59d40b..1341272 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -35,5 +35,5 @@ jobs: - name: CI Badges uses: gaelgirodon/ci-badges-action@v1 with: - gist-id: ci-badges + gist-id: 4b8ce8c93b2a3a92b777d51914cb1e6b token: ${{ secrets.GIST_TOKEN }} diff --git a/README.MD b/README.MD index cbcfd28..445413c 100644 --- a/README.MD +++ b/README.MD @@ -3,7 +3,7 @@ [![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?url=https://gist.githubusercontent.com/Afrouper/4b8ce8c93b2a3a92b777d51914cb1e6b/raw/9352822e575e3f75afef51f26f1b5e9125c526dc/sungrow-api-client-junit-tests.json) +![Tests](https://img.shields.io/endpoint?label=Tests&url=https://gist.githubusercontent.com/Afrouper/4b8ce8c93b2a3a92b777d51914cb1e6b/raw/9352822e575e3f75afef51f26f1b5e9125c526dc/sungrow-api-client-junit-tests.json) API Client which uses the official API from the [sungrow developer portal](https://developer-api.isolarcloud.com/). From ced99b03418a2a6aa6477899191cb4245da9ca55 Mon Sep 17 00:00:00 2001 From: christian Date: Fri, 3 Jan 2025 23:46:35 +0100 Subject: [PATCH 6/6] Badges for coverage --- README.MD | 1 + 1 file changed, 1 insertion(+) diff --git a/README.MD b/README.MD index 445413c..4a39805 100644 --- a/README.MD +++ b/README.MD @@ -4,6 +4,7 @@ [![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/).