From 22a3160f8a3facb65a893e332eabcbdd1d999fbc Mon Sep 17 00:00:00 2001 From: Paul Woitaschek Date: Wed, 20 Mar 2024 21:48:20 +0100 Subject: [PATCH] Run the correct test flavors --- .github/workflows/voice.yml | 3 +-- plugins/src/main/kotlin/AppPlugin.kt | 3 +++ plugins/src/main/kotlin/LibraryPlugin.kt | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/voice.yml b/.github/workflows/voice.yml index 4a2cccbf8b..a71e4dcfd9 100644 --- a/.github/workflows/voice.yml +++ b/.github/workflows/voice.yml @@ -41,7 +41,7 @@ jobs: run: ./ci_signing_setup.sh - name: Test - run: ./gradlew testDebugUnitTest lintKotlin :app:lintDebug :app:assembleDebug :scripts:build + run: ./gradlew voiceUnitTest lintKotlin :app:lintPlayProprietaryDebug :app:assemblePlayProprietaryDebug :scripts:build - uses: actions/upload-artifact@v4 if: always() @@ -50,7 +50,6 @@ jobs: path: | artifacts/ app/build/reports/*.html - app/build/outputs/apk/debug/app-debug.apk - name: Publish Test Report uses: mikepenz/action-junit-report@v4 diff --git a/plugins/src/main/kotlin/AppPlugin.kt b/plugins/src/main/kotlin/AppPlugin.kt index 6fed78b8d4..b6f5ca65d2 100644 --- a/plugins/src/main/kotlin/AppPlugin.kt +++ b/plugins/src/main/kotlin/AppPlugin.kt @@ -10,6 +10,9 @@ class AppPlugin : Plugin { apply("kotlin-android") withPlugin("com.android.application") { target.baseSetup() + target.tasks.register("voiceUnitTest") { + dependsOn("testPlayProprietaryDebugUnitTest") + } } } } diff --git a/plugins/src/main/kotlin/LibraryPlugin.kt b/plugins/src/main/kotlin/LibraryPlugin.kt index 407442287f..4a9df2fe3f 100644 --- a/plugins/src/main/kotlin/LibraryPlugin.kt +++ b/plugins/src/main/kotlin/LibraryPlugin.kt @@ -10,6 +10,9 @@ class LibraryPlugin : Plugin { apply("kotlin-android") withPlugin("com.android.library") { target.baseSetup() + target.tasks.register("voiceUnitTest") { + dependsOn("testDebugUnitTest") + } } } }