Skip to content

Commit

Permalink
Finer test task selection to dismiss time consuming Android flavor sp…
Browse files Browse the repository at this point in the history
…ecific tasks
  • Loading branch information
opatry committed Sep 30, 2024
1 parent 6087e3f commit 1294e17
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1294e17

Please sign in to comment.