mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
ci: tests
This commit is contained in:
4
.github/workflows/apps_automated.yml
vendored
4
.github/workflows/apps_automated.yml
vendored
@@ -49,7 +49,7 @@ jobs:
|
||||
uses: rigor789/action-create-emulator@main
|
||||
|
||||
- name: Test (Android)
|
||||
run: npx nx run apps-automated:android --timeout=600
|
||||
run: node tools/scripts/run-automated.js android
|
||||
|
||||
- name: Start iOS Simulator
|
||||
if: ${{ always() && !cancelled() }} # run iOS tests even if Android tests failed
|
||||
@@ -60,4 +60,4 @@ jobs:
|
||||
|
||||
- name: Test (iOS)
|
||||
if: ${{ always() && !cancelled() }} # run iOS tests even if Android tests failed
|
||||
run: npx nx run apps-automated:ios --timeout=600
|
||||
run: node tools/scripts/run-automated.js ios
|
||||
|
||||
@@ -6,9 +6,10 @@
|
||||
*/
|
||||
const spawn = require('child_process').spawn
|
||||
const kill = require('tree-kill');
|
||||
const path = require('path');
|
||||
|
||||
const TIMEOUT_MS = 5 * 60 * 1000; // 5 minutes
|
||||
|
||||
const workspaceDir = path.resolve(__dirname, '../..');
|
||||
const platform = process.argv[2];
|
||||
const spawned_process = spawn(
|
||||
"npx",
|
||||
@@ -20,6 +21,7 @@ const spawned_process = spawn(
|
||||
"--timeout=600" // 10 minutes, booting avds on CI is very slow...
|
||||
],
|
||||
{
|
||||
cwd: workspaceDir,
|
||||
stdio: ["inherit", "pipe", "pipe"],
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user