From a58c6ca8cf0a0934b5af9224f5f20316816b96f5 Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" Date: Sat, 4 Jul 2026 06:15:07 +0000 Subject: [PATCH] Task names mismatched due to KMP & flavors Co-authored-by: 283375 <283375@users.noreply.github.com> --- .github/scripts/connected-android-test.sh | 7 ++++--- .github/workflows/connected-android-test.yml | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/scripts/connected-android-test.sh b/.github/scripts/connected-android-test.sh index 85ae957..2bc3e4f 100755 --- a/.github/scripts/connected-android-test.sh +++ b/.github/scripts/connected-android-test.sh @@ -17,15 +17,16 @@ archive_reports() { local target_dir="$OUTPUT_ROOT/$stage" echo "=== Archiving $stage test reports ===" - mkdir -p "$target_dir/app" "$target_dir/shared" + mkdir -p "$target_dir/app" "$target_dir/core" "$target_dir/shared" cp -r app/build/reports/androidTests/connected/* "$target_dir/app/" 2>/dev/null || true + cp -r core/build/reports/androidTests/connected/* "$target_dir/core/" 2>/dev/null || true cp -r shared/build/reports/androidTests/connected/* "$target_dir/shared/" 2>/dev/null || true } echo "=== Starting Portrait Tests ===" set_orientation 0 -if ! ./gradlew connectedDebugAndroidTest --stacktrace; then +if ! ./gradlew app:connectedStableDebugAndroidTest app:connectedUnstableDebugAndroidTest core:connectedDebugAndroidTest shared:connectedAndroidDeviceTest --stacktrace; then echo "❌ Portrait tests failed!" TEST_FAILED=1 fi @@ -33,7 +34,7 @@ archive_reports "portrait" echo "=== Starting Landscape Tests ===" set_orientation 1 -if ! ./gradlew connectedDebugAndroidTest --stacktrace; then +if ! ./gradlew app:connectedStableDebugAndroidTest app:connectedUnstableDebugAndroidTest core:connectedDebugAndroidTest shared:connectedAndroidDeviceTest --stacktrace; then echo "❌ Landscape tests failed!" TEST_FAILED=1 fi diff --git a/.github/workflows/connected-android-test.yml b/.github/workflows/connected-android-test.yml index ebed0e4..0ab4da1 100644 --- a/.github/workflows/connected-android-test.yml +++ b/.github/workflows/connected-android-test.yml @@ -43,7 +43,7 @@ jobs: # Avoid building the application when AVD is running, so Gradle can use more RAM - name: Build Application - run: ./gradlew assembleDebugAndroidTest --stacktrace + run: ./gradlew app:assembleStableDebugAndroidTest app:assembleUnstableDebugAndroidTest core:assembleDebugAndroidTest shared:assembleAndroidDeviceTest --stacktrace # android-emulator-runner configurations start here # See also https://github.com/ReactiveCircus/android-emulator-runner#usage--examples