Skip to content

Commit

Permalink
Add Compose UI (Jvm) tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
opatry committed Oct 17, 2024
1 parent 53b5cca commit cf6ea68
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf6ea68

Please sign in to comment.