Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/scripts/connected-android-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,24 @@ 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
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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/connected-android-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading