From dff56ebbf3c98bf17f067df255d1cb435684f78f Mon Sep 17 00:00:00 2001 From: Denis Trotsenko Date: Sun, 19 May 2024 00:31:00 +0200 Subject: [PATCH 1/2] Upload reports to codecov --- .github/workflows/gradle.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index ad2f5bb..87d3635 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -2,9 +2,9 @@ name: Build, Test and Lint on: push: - branches: [master] + branches: [ master ] pull_request: - branches: [develop] + branches: [ develop ] workflow_dispatch: jobs: @@ -13,12 +13,25 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - name: Setup JDK uses: actions/setup-java@v3 with: distribution: adopt java-version: 11 + - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@v1 + - name: Check all modules run: ./gradlew check + + - name: Generate test coverage report + run: ./gradlew koverXmlReport + + - name: Upload test coverage report + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ./kotpass/build/reports/kover/report.xml + fail_ci_if_error: true From 9825ca299a0d1149f1dde7af1795b9bdc821702d Mon Sep 17 00:00:00 2001 From: Denis Trotsenko Date: Sun, 19 May 2024 01:00:13 +0200 Subject: [PATCH 2/2] Add coverage badge --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2291de0..518a8fb 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Kotpass -![Build & Test](https://img.shields.io/github/actions/workflow/status/keemobile/kotpass/gradle.yml?label=Build%20%26%20Test&style=flat-square) -[![](https://jitpack.io/v/keemobile/kotpass.svg?style=flat-square)](https://jitpack.io/#keemobile/kotpass) ![badge][badge-jvm] +![Build & Test](https://img.shields.io/github/actions/workflow/status/keemobile/kotpass/gradle.yml?label=Build%20%26%20Test) +[![](https://jitpack.io/v/keemobile/kotpass.svg)](https://jitpack.io/#keemobile/kotpass) [![codecov](https://codecov.io/gh/keemobile/kotpass/graph/badge.svg?token=59LMP3BOXJ)](https://codecov.io/gh/keemobile/kotpass) ![badge][badge-jvm] -[badge-jvm]: http://img.shields.io/badge/-JVM-DB413D.svg?style=flat-square +[badge-jvm]: http://img.shields.io/badge/-JVM-DB413D.svg The library offers reading and writing support for [KeePass](https://en.wikipedia.org/wiki/KeePass) (KDBX) files in Kotlin, including the latest format version 4.1. It is suitable for Mobile, Desktop, and Backend JVM projects. The functional style API makes it convenient for MVI-like architectures.