Skip to content

Commit

Permalink
set timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyKirakosyan committed Jun 21, 2024
1 parent 14a80a3 commit 99d55c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/react-native-code-push-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
test-android:
name: Test Android app
runs-on: macOS-12
timeout-minutes: 90
strategy:
matrix:
api-level: [ 27 ]
Expand All @@ -20,7 +21,7 @@ jobs:
- name: Gradle cache
uses: gradle/actions/setup-gradle@v3
- name: Download system image "android-${{ matrix.api-level }}"
run: $ANDROID_HOME/tools/bin/sdkmanager "system-images;android-${{ matrix.api-level }};google_apis;x86"
run: $ANDROID_HOME/tools/bin/sdkmanager "system-images;android-${{ matrix.api-level }};google_apis;x86"
- name: Create android emulator
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"
- name: Start android emulator
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"test:setup:android": "mocha --recursive bin/test --android --setup",
"test:setup:ios": "mocha --recursive bin/test --ios --setup",
"test:fast": "mocha --recursive bin/test --android --ios",
"test:fast:android": "mocha --recursive bin/test --android -g 'window.codePush.sync.2x.checkerror' ",
"test:fast:android": "mocha --recursive bin/test --android",
"test:fast:ios": "mocha --recursive bin/test --ios",
"test:debugger:android": "mocha --recursive --inspect-brk=0.0.0.0 bin/test --android",
"test:debugger:ios": "mocha --recursive --inspect-brk=0.0.0.0 bin/test --ios",
Expand Down
4 changes: 2 additions & 2 deletions test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ class RNProjectManager extends ProjectManager {
}
mkdirp.sync(projectDirectory);

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

0 comments on commit 99d55c4

Please sign in to comment.