Skip to content

Commit d3c5cf1

Browse files
committed
Extend GHA workflow to run test app
1 parent 8e8811b commit d3c5cf1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,5 +134,5 @@ jobs:
134134
adb uninstall com.microsoft.reacttestapp || true
135135
# Build, install and run the app
136136
npm run test:android
137-
# See https://github.com/ReactiveCircus/android-emulator-runner/issues/385#issuecomment-2492035091
138-
killall -INT crashpad_handler || true
137+
# Wait a bit for the sub-process to terminate, before terminating the emulator
138+
sleep 5

apps/test-app/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"private": true,
44
"version": "0.1.0",
55
"scripts": {
6-
"start": "react-native start",
6+
"start": "react-native start --no-interactive",
77
"android": "react-native run-android --no-packager --active-arch-only",
88
"build:android": "react-native bundle --entry-file index.js --platform android --dev true --bundle-output dist/main.android.jsbundle --assets-dest dist/res",
99
"ios": "react-native run-ios --no-packager",
1010
"pod-install": "cd ios && pod install",
11-
"test:android": "mocha-remote --exit-on-error -- concurrently npm:start npm:android",
12-
"test:ios": "mocha-remote --exit-on-error -- concurrently npm:start npm:ios"
11+
"test:android": "mocha-remote --exit-on-error -- concurrently --kill-timeout 1000 npm:start npm:android",
12+
"test:ios": "mocha-remote --exit-on-error -- concurrently --kill-timeout 1000 npm:start npm:ios"
1313
},
1414
"dependencies": {
1515
"@babel/core": "^7.26.10",

0 commit comments

Comments
 (0)