@@ -346,7 +346,7 @@ jobs:
346346 SIMDECK_INTEGRATION_REQUIRE_RUNNING_ANDROID : " 1"
347347 SIMDECK_INTEGRATION_VERBOSE : " 1"
348348
349- - name : Create and boot Android emulator (Windows)
349+ - name : Create, boot, and test Android emulator (Windows)
350350 if : runner.os == 'Windows'
351351 shell : pwsh
352352 timeout-minutes : 45
@@ -486,14 +486,14 @@ jobs:
486486 & $adb -s $serial shell settings put global window_animation_scale 0
487487 & $adb -s $serial shell settings put global transition_animation_scale 0
488488 & $adb -s $serial shell settings put global animator_duration_scale 0
489-
490- - name : Android emulator integration tests (Windows)
491- if : runner.os == 'Windows'
492- run : npm run test:integration:android
493- env :
494- SIMDECK_INTEGRATION_ANDROID_AVD : SimDeck_Pixel_CI
495- SIMDECK_INTEGRATION_REQUIRE_RUNNING_ANDROID : " 1 "
496- SIMDECK_INTEGRATION_VERBOSE : " 1 "
489+ $env:SIMDECK_INTEGRATION_ANDROID_AVD = "SimDeck_Pixel_CI"
490+ $env:SIMDECK_INTEGRATION_REQUIRE_RUNNING_ANDROID = "1"
491+ $env:SIMDECK_INTEGRATION_VERBOSE = "1"
492+ npm run test:integration:android
493+ if ($LASTEXITCODE -ne 0) {
494+ Write-EmulatorDiagnostics
495+ throw "Android integration tests failed with exit code $LASTEXITCODE. "
496+ }
497497
498498 - name : Stop Android emulator (Windows)
499499 if : always() && runner.os == 'Windows'
0 commit comments