Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions .github/workflows/lint_unitTests_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
- reopened
- synchronize

permissions:
contents: read

Comment on lines +14 to +16
jobs:
lint:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -64,13 +67,34 @@ jobs:
- name: Setup Android SDK
uses: android-actions/setup-android@v2

- name: unit tests
run: ./gradlew --no-daemon --stacktrace testDebugUnitTest
- name: unit tests with coverage
run: ./gradlew --no-daemon --stacktrace testDebugUnitTest koverHtmlReport

- name: test report
uses: asadmansr/android-test-report-action@v1.2.0
if: ${{ always() }}

- name: upload coverage report
uses: actions/upload-pages-artifact@v3
if: github.ref == 'refs/heads/develop'
with:
path: build/reports/kover/html

deploy-coverage:
runs-on: ubuntu-latest
needs: unit
if: github.ref == 'refs/heads/develop'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
steps:
- name: deploy to GitHub Pages
id: deploy
uses: actions/deploy-pages@v4

build:
runs-on: ubuntu-latest
steps:
Expand Down
13 changes: 13 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@ allprojects {
}
}

apply plugin: 'org.jetbrains.kotlinx.kover'

dependencies {
kover(project(':sdk'))
kover(project(':mindbox-firebase'))
kover(project(':mindbox-huawei'))
kover(project(':mindbox-rustore'))
kover(project(':mindbox-firebase-starter'))
kover(project(':mindbox-huawei-starter'))
kover(project(':mindbox-rustore-starter'))
kover(project(':mindbox-sdk-starter-core'))
}

tasks.register('clean', Delete) {
delete rootProject.getLayout().getBuildDirectory()
}
5 changes: 4 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ agcp = "1.9.1.300"
ktlint-plugin = "12.1.1"
ksp = "1.9.22-1.0.17"
maven_publish = "0.32.0"
kover = "0.8.3"

pushclient = "7.2.0"

Expand All @@ -51,6 +52,7 @@ buildscript-plugins = [
"ktlint_gradle_plugin",
"ksp_gradle_plugin",
"maven_publish_plugin",
"kover_gradle_plugin",
]

test = [
Expand Down Expand Up @@ -116,4 +118,5 @@ google_services = { module = "com.google.gms:google-services", version.ref = "go
agcp = { module = "com.huawei.agconnect:agcp", version.ref = "agcp" }
ktlint_gradle_plugin = { module = "org.jlleitschuh.gradle:ktlint-gradle", version.ref = "ktlint-plugin" }
ksp_gradle_plugin = { module = "com.google.devtools.ksp:symbol-processing-gradle-plugin", version.ref = "ksp" }
maven_publish_plugin = { module = "com.vanniktech:gradle-maven-publish-plugin", version.ref = "maven_publish" }
maven_publish_plugin = { module = "com.vanniktech:gradle-maven-publish-plugin", version.ref = "maven_publish" }
kover_gradle_plugin = { module = "org.jetbrains.kotlinx:kover-gradle-plugin", version.ref = "kover" }
1 change: 1 addition & 0 deletions modulesCommon.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apply plugin: 'kotlin-android'
apply plugin: 'signing'
apply plugin: 'org.jlleitschuh.gradle.ktlint'
apply plugin: 'com.vanniktech.maven.publish'
apply plugin: 'org.jetbrains.kotlinx.kover'

group = 'com.github.mindbox-cloud'

Expand Down
Loading