From 3fdc9d8f3f4cb511dfea3e6363ccf79e9a620e00 Mon Sep 17 00:00:00 2001 From: Nic Bell Date: Fri, 17 Nov 2023 09:51:45 +0100 Subject: [PATCH] CI script update. --- .github/workflows/checks.yml | 16 ++++------------ config/codecoverage-template.html | 25 +++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 12 deletions(-) create mode 100644 config/codecoverage-template.html diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index e5bf0dd..f77c332 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -33,21 +33,13 @@ jobs: - name: Unit tests run: ./gradlew testDebugUnitTest - name: Kover report - run: ./gradlew koverMergedReport -# - name: Add coverage report to PR -# id: kover -# uses: mi-kas/kover-report@v1.2-beta -# with: -# path: ${{ github.workspace }}/build/reports/kover/merged/xml/report.xml -# token: ${{ secrets.GITHUB_TOKEN }} -# title: Code Coverage -# update-comment: true -# min-coverage-overall: 80 -# min-coverage-changed-files: 80 + run: ./gradlew koverHtmlReport koverXmlReport + - name: Kover dump + run: ./gradlew koverDump -q - name: Codecov uses: codecov/codecov-action@v3 with: - files: ./build/reports/kover/merged/xml/report.xml + files: ./build/reports/kover/report.xml flags: unittests verbose: true - name: Upload reports diff --git a/config/codecoverage-template.html b/config/codecoverage-template.html new file mode 100644 index 0000000..a18ca86 --- /dev/null +++ b/config/codecoverage-template.html @@ -0,0 +1,25 @@ + + + Code Coverage + + + +
+ +

Code coverage reports for each module. indicates no report available.

+ + + + + + + $codeQuality +
ModuleCoverage ReportCoverage
+
+ + \ No newline at end of file