From 07c662d47dc923c923e392313ac48c530303f358 Mon Sep 17 00:00:00 2001 From: Allain Magyar Date: Thu, 12 Feb 2026 15:54:26 -0300 Subject: [PATCH 1/5] chore: enables coverage Signed-off-by: Allain Magyar --- .github/workflows/pull-request.yml | 41 ++++++++++-------------------- apollo/build.gradle.kts | 2 +- bip32-ed25519/build.gradle.kts | 2 +- gradle/libs.versions.toml | 2 +- scripts/install-rust-packages.sh | 0 5 files changed, 17 insertions(+), 30 deletions(-) mode change 100644 => 100755 scripts/install-rust-packages.sh diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 9567c9423..211dadc0a 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -16,6 +16,9 @@ env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} on: + push: + branches: + - "main" pull_request: workflow_dispatch: @@ -138,30 +141,14 @@ jobs: - name: "Build Check All tests" run: ./gradlew allTests -# - name: "Generate kover coverage report" -# run: ./gradlew koverHtmlReport koverXmlReport - -# - name: "Upload coverage html" -# uses: actions/upload-artifact@v4.0.0 -# with: -# name: coverage-results-${{ matrix.os-type }}.zip -# path: apollo/build/reports/kover/html - -# - name: "Add coverage report to PR" -# id: kover -# uses: mi-kas/kover-report@v1 -# with: -# path: ${{ github.workspace }}/apollo/build/reports/kover/report.xml -# token: ${{ env.GITHUB_TOKEN }} -# title: Code Coverage -# update-comment: true -# min-coverage-overall: 90 -# min-coverage-changed-files: 90 -# coverage-counter-type: LINE - -# - name: "Upload the build report" -# if: always() -# uses: actions/upload-artifact@v4 -# with: -# path: "**/build/reports/" -# name: report-${{ matrix.os-type }} + - name: "Generate kover coverage report" + run: ./gradlew koverHtmlReport koverXmlReport + + - name: Coveralls + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7 + with: + files: + - "apollo/build/reports/kover/report.xml" + - "bip32-ed25519/build/reports/kover/report.xml" diff --git a/apollo/build.gradle.kts b/apollo/build.gradle.kts index 52dbe7bc2..a4551b7f7 100644 --- a/apollo/build.gradle.kts +++ b/apollo/build.gradle.kts @@ -11,7 +11,7 @@ plugins { alias(libs.plugins.maven.publish) alias(libs.plugins.npm.publish) alias(libs.plugins.swiftpackage) - alias(libs.plugins.kover) apply false // https://github.com/Kotlin/kotlinx-kover/issues/747 + alias(libs.plugins.kover) } val appleBinaryName = "ApolloLibrary" diff --git a/bip32-ed25519/build.gradle.kts b/bip32-ed25519/build.gradle.kts index a507ad615..718cc2d73 100644 --- a/bip32-ed25519/build.gradle.kts +++ b/bip32-ed25519/build.gradle.kts @@ -6,7 +6,7 @@ plugins { alias(libs.plugins.kotlin.multiplatform) alias(libs.plugins.android.kotlin.multiplatform.library) alias(libs.plugins.maven.publish) - alias(libs.plugins.kover) apply false // https://github.com/Kotlin/kotlinx-kover/issues/747 + alias(libs.plugins.kover) } val appleBinaryName = "ApolloLibrary" diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 6dcf7967f..3b629db4b 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,7 +3,7 @@ kotlin = "2.2.0" agp = "8.11.0" dokka = "1.9.20" ktlint = "12.3.0" -kover = "0.9.1" +kover = "0.9.7" vanniktech-maven-publish = "0.33.0" npm-publish = "3.5.3" swiftpackage = "2.2.4" diff --git a/scripts/install-rust-packages.sh b/scripts/install-rust-packages.sh old mode 100644 new mode 100755 From 5bdba3bcfb2cc356ee4b11a541df5666bbbd01a2 Mon Sep 17 00:00:00 2001 From: Allain Magyar Date: Thu, 12 Feb 2026 20:02:07 -0300 Subject: [PATCH 2/5] chore: fix files in coveralls step Signed-off-by: Allain Magyar --- .github/workflows/pull-request.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 211dadc0a..47bedbe39 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -149,6 +149,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7 with: - files: - - "apollo/build/reports/kover/report.xml" - - "bip32-ed25519/build/reports/kover/report.xml" + files: apollo/build/reports/kover/report.xml bip32-ed25519/build/reports/kover/report.xml From bc5e48f02759fe876fe29bf59978f640b2196719 Mon Sep 17 00:00:00 2001 From: Allain Magyar Date: Thu, 12 Feb 2026 21:16:21 -0300 Subject: [PATCH 3/5] chore: remove wordlist package from coverage Signed-off-by: Allain Magyar --- apollo/build.gradle.kts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apollo/build.gradle.kts b/apollo/build.gradle.kts index a4551b7f7..b335fd540 100644 --- a/apollo/build.gradle.kts +++ b/apollo/build.gradle.kts @@ -18,6 +18,16 @@ val appleBinaryName = "ApolloLibrary" val minimumIosVersion = "15.0" val minimumMacOSVersion = "13.0" +kover { + reports { + filters { + excludes { + classes("org.hyperledger.identus.apollo.utils.bip39.wordlists.*") + } + } + } +} + kotlin { applyDefaultHierarchyTemplate() compilerOptions { From c2d403b91cca6822c6a4d97a6e772b9d5884f4fe Mon Sep 17 00:00:00 2001 From: Allain Magyar Date: Wed, 18 Feb 2026 18:45:37 -0300 Subject: [PATCH 4/5] chore: update badges Signed-off-by: Allain Magyar --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index aafabe953..532289b4f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,13 @@ -![License](https://img.shields.io/badge/license-Apache%20License%202.0-blue?logo=apache) -![Kotlin](https://img.shields.io/badge/kotlin-2.2.0-blue?logo=kotlin) -![Gradle](https://img.shields.io/badge/gradle-8.13-blue?logo=gradle) +

+ + identus-logo + +

+ +[![Coverage Status](https://coveralls.io/repos/github/hyperledger-identus/apollo/badge.svg?branch=main)](https://coveralls.io/github/hyperledger-identus/apollo?branch=main) +[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=hyperledger-identus_apollo&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=hyperledger-identus_apollo) +[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/11738/badge)](https://www.bestpractices.dev/projects/11738) +[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/hyperledger-identus/apollo/badge)](https://scorecard.dev/viewer/?uri=github.com/hyperledger-identus/apollo) # Apollo From 74070f1d53e135a2f797b329029df0d838fbb86b Mon Sep 17 00:00:00 2001 From: Allain Magyar Date: Fri, 20 Feb 2026 12:54:57 -0300 Subject: [PATCH 5/5] chore: add release and social badges Signed-off-by: Allain Magyar --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 532289b4f..77fed335b 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,9 @@ [![OpenSSF Best Practices](https://www.bestpractices.dev/projects/11738/badge)](https://www.bestpractices.dev/projects/11738) [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/hyperledger-identus/apollo/badge)](https://scorecard.dev/viewer/?uri=github.com/hyperledger-identus/apollo) +[![GitHub release](https://img.shields.io/github/release/hyperledger-identus/apollo.svg)](https://github.com/hyperledger-identus/apollo/releases) +[![Discord](https://img.shields.io/discord/905194001349627914?label=discord)](https://discord.com/channels/905194001349627914/1230596020790886490) + # Apollo A cryptography lib built with Kotlin Multiplatform with support for the following targets: