Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 99d55c4

Browse files
set timeout
1 parent 14a80a3 commit 99d55c4

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/react-native-code-push-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
test-android:
1010
name: Test Android app
1111
runs-on: macOS-12
12+
timeout-minutes: 90
1213
strategy:
1314
matrix:
1415
api-level: [ 27 ]
@@ -20,7 +21,7 @@ jobs:
2021
- name: Gradle cache
2122
uses: gradle/actions/setup-gradle@v3
2223
- name: Download system image "android-${{ matrix.api-level }}"
23-
run: $ANDROID_HOME/tools/bin/sdkmanager "system-images;android-${{ matrix.api-level }};google_apis;x86"
24+
run: $ANDROID_HOME/tools/bin/sdkmanager "system-images;android-${{ matrix.api-level }};google_apis;x86"
2425
- name: Create android emulator
2526
run: $ANDROID_HOME/tools/bin/avdmanager create avd --force --name TestEmulator --abi google_apis/x86 --package 'system-images;android-${{ matrix.api-level }};google_apis;x86' --device "Nexus 6P"
2627
- name: Start android emulator

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"test:setup:android": "mocha --recursive bin/test --android --setup",
2525
"test:setup:ios": "mocha --recursive bin/test --ios --setup",
2626
"test:fast": "mocha --recursive bin/test --android --ios",
27-
"test:fast:android": "mocha --recursive bin/test --android -g 'window.codePush.sync.2x.checkerror' ",
27+
"test:fast:android": "mocha --recursive bin/test --android",
2828
"test:fast:ios": "mocha --recursive bin/test --ios",
2929
"test:debugger:android": "mocha --recursive --inspect-brk=0.0.0.0 bin/test --android",
3030
"test:debugger:ios": "mocha --recursive --inspect-brk=0.0.0.0 bin/test --ios",

test/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ class RNProjectManager extends ProjectManager {
307307
}
308308
mkdirp.sync(projectDirectory);
309309

310-
return TestUtil.getProcessOutput("npx react-native init " + appName + " --version 0.71.3 --install-pods", { cwd: projectDirectory, timeout: 30 * 60 * 1000 })
311-
.then((e) => { console.log(`"npx react-native init ${appName}" success. cwd=${projectDirectory}`); return e; })
310+
return TestUtil.getProcessOutput("npx react-native init " + appName + " --version 0.71.3 --install-pods", { cwd: projectDirectory, timeout: 30 * 60 * 1000 })
311+
.then((e) => { console.log(`"npx react-native init ${appName}" success. cwd=${projectDirectory}`); return e; })
312312
.then(this.copyTemplate.bind(this, templatePath, projectDirectory))
313313
.then<void>(TestUtil.getProcessOutput.bind(undefined, TestConfig.thisPluginInstallString, { cwd: path.join(projectDirectory, TestConfig.TestAppName) }))
314314
.then(() => { return null; })

0 commit comments

Comments
 (0)