ci: tests

This commit is contained in:
Nathan Walker
2023-02-14 19:55:45 -08:00
parent decbfa11f4
commit 64e91e93ae
2 changed files with 5 additions and 3 deletions

View File

@@ -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

View File

@@ -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"],
}
);