Skip to content

Commit

Permalink
Run the correct test flavors
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulWoitaschek committed Mar 20, 2024
1 parent 440b6e6 commit 22a3160
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/voice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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
Expand Down
3 changes: 3 additions & 0 deletions plugins/src/main/kotlin/AppPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ class AppPlugin : Plugin<Project> {
apply("kotlin-android")
withPlugin("com.android.application") {
target.baseSetup()
target.tasks.register("voiceUnitTest") {
dependsOn("testPlayProprietaryDebugUnitTest")
}
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions plugins/src/main/kotlin/LibraryPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ class LibraryPlugin : Plugin<Project> {
apply("kotlin-android")
withPlugin("com.android.library") {
target.baseSetup()
target.tasks.register("voiceUnitTest") {
dependsOn("testDebugUnitTest")
}
}
}
}
Expand Down

0 comments on commit 22a3160

Please sign in to comment.