Skip to content

Commit 64e91e9

Browse files
committed
ci: tests
1 parent decbfa1 commit 64e91e9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/apps_automated.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
uses: rigor789/action-create-emulator@main
5050

5151
- name: Test (Android)
52-
run: npx nx run apps-automated:android --timeout=600
52+
run: node tools/scripts/run-automated.js android
5353

5454
- name: Start iOS Simulator
5555
if: ${{ always() && !cancelled() }} # run iOS tests even if Android tests failed
@@ -60,4 +60,4 @@ jobs:
6060

6161
- name: Test (iOS)
6262
if: ${{ always() && !cancelled() }} # run iOS tests even if Android tests failed
63-
run: npx nx run apps-automated:ios --timeout=600
63+
run: node tools/scripts/run-automated.js ios

tools/scripts/run-automated.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
*/
77
const spawn = require('child_process').spawn
88
const kill = require('tree-kill');
9+
const path = require('path');
910

1011
const TIMEOUT_MS = 5 * 60 * 1000; // 5 minutes
11-
12+
const workspaceDir = path.resolve(__dirname, '../..');
1213
const platform = process.argv[2];
1314
const spawned_process = spawn(
1415
"npx",
@@ -20,6 +21,7 @@ const spawned_process = spawn(
2021
"--timeout=600" // 10 minutes, booting avds on CI is very slow...
2122
],
2223
{
24+
cwd: workspaceDir,
2325
stdio: ["inherit", "pipe", "pipe"],
2426
}
2527
);

0 commit comments

Comments
 (0)