From fb35dd40a4956148ada044d4352b35af185691dc Mon Sep 17 00:00:00 2001 From: Eric Park Date: Sun, 17 Mar 2024 10:41:50 -0400 Subject: [PATCH] mobile: fix gradle invocation with sh The current directory is not considered part of the PATH, hence it was failing on the GitHub Actions runners. --- mobile/gradle.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mobile/gradle.js b/mobile/gradle.js index fe5dd8e8..941458fc 100644 --- a/mobile/gradle.js +++ b/mobile/gradle.js @@ -5,13 +5,11 @@ const os = require("os"); function runAndroidTest(args) { const platform = os.platform(); - let baseCommand = platform === "win32" ? "gradlew.bat" : "gradlew"; + let baseCommand = platform === "win32" ? "gradlew.bat" : "./gradlew"; const command = `${baseCommand} ${args.join(" ")}`; try { - execSync("pwd", { stdio: "inherit", cwd: "android" }); - execSync("ls", { stdio: "inherit", cwd: "android" }); const output = execSync(command, { stdio: "inherit", cwd: "android" }); if (output && output.toString()) { console.log(output.toString());