From 1294e1794762d23c62cfbacd475af461992f87ec Mon Sep 17 00:00:00 2001 From: Olivier Patry Date: Mon, 30 Sep 2024 23:18:58 +0200 Subject: [PATCH] Finer test task selection to dismiss time consuming Android flavor specific tasks --- .github/workflows/build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cdfd2cb7..9b537a64 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,7 +48,14 @@ jobs: -Pplaystore.keystore.key_password="${KEYSTORE_KEY_PASSWORD}" - name: ✅ Test - run: ./gradlew --no-daemon test + run: | + # `test` to trigger as much Jvm tests as possible + # `:tasks-app-android:testStoreReleaseUnitTest` to restrict to only specific flavor(store)+variant(release) for `:tasks-app-android` module. + # `-x :tasks-app-android:test` to remove all tests from `:tasks-app-android` module not being covered by `:tasks-app-android:testStoreReleaseUnitTest`. + # `-x testDebugUnitTest` to avoid triggering tests both in debug & release build. + # `-x :tasks-app-android:build` to avoid triggering useless build tasks (typically for unused flavors). + # Only rely on dependencies of `:tasks-app-android:testStoreReleaseUnitTest`. + ./gradlew --no-daemon test :tasks-app-android:testStoreReleaseUnitTest -x :tasks-app-android:test -x testDebugUnitTest -x :tasks-app-android:build - name: 🗒️ Publish Test Reports uses: mikepenz/action-junit-report@v4