Add missing compiled js files.

This commit is contained in:
Yang Chen
2019-11-08 23:36:53 +11:00
parent f605a44b4a
commit 0035a64068
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -54,13 +54,16 @@ function run() {
const disableAnimations = disableAnimationsInput === 'true';
console.log(`disable animations: ${disableAnimations}`);
// custom scrpt to run
const script = core.getInput('script', { required: true });
const scriptInput = core.getInput('script', { required: true });
const commands = scriptInput.split(/\r?\n/);
// install SDK
yield sdk_installer_1.installAndroidSdk(apiLevel, target, arch);
// launch an emulator
yield emulator_manager_1.launchEmulator(apiLevel, target, arch, profile, headless, disableAnimations);
// execute the custom script
yield exec.exec(`${script}`);
commands.forEach((command) => __awaiter(this, void 0, void 0, function* () {
yield exec.exec(`${command}`);
}));
// finally kill the emulator
yield emulator_manager_1.killEmulator();
}