ci: fix automated test workflow (#9982)

This commit is contained in:
Igor Randjelovic
2022-07-31 15:17:04 +02:00
committed by Nathan Walker
parent c67f5e19bf
commit 3772264751
2 changed files with 40 additions and 25 deletions

View File

@ -9,10 +9,23 @@ const kill = require('tree-kill');
const TIMEOUT_MS = 5 * 60 * 1000; // 5 minutes
const spawned_process = spawn('npm', ['start', `apps.automated.${process.argv[2]}`], {
stdio: ['inherit', 'pipe', 'pipe']
})
const {stdout, stderr} = spawned_process
const platform = process.argv[2];
const spawned_process = spawn(
"ns",
[
"--path=./apps/automated",
"run",
platform,
"--no-hmr",
"--force",
// "--log=trace",
"--timeout=600" // 10 minutes, booting avds on CI is very slow...
],
{
stdio: ["inherit", "pipe", "pipe"],
}
);
const { stdout, stderr } = spawned_process
stdout.pipe(process.stdout)
stderr.pipe(process.stderr)