From cf6ea68e52299db1184f712b9f1a384f7cd4b272 Mon Sep 17 00:00:00 2001 From: Olivier Patry Date: Thu, 17 Oct 2024 16:04:27 +0200 Subject: [PATCH] Add Compose UI (Jvm) tests in CI --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 17830c79..b18384d6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -120,14 +120,16 @@ jobs: # `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. + # `jvmTest` to execute Compose UI tests on Jvm + # `-x :tasks-app-shared:testReleaseUnitTest` until Compose UI tests work on Android (using Robolectric) # `-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`. - name: ✅ Test run: | - ./gradlew --no-daemon test :tasks-app-android:testStoreReleaseUnitTest \ - -x :tasks-app-android:test -x testDebugUnitTest -x :tasks-app-android:build + ./gradlew --no-daemon test :tasks-app-android:testStoreReleaseUnitTest jvmTest \ + -x :tasks-app-android:test -x testDebugUnitTest -x :tasks-app-android:build -x :tasks-app-shared:testReleaseUnitTest - name: 🗒️ Publish Test Reports uses: mikepenz/action-junit-report@v4