Skip to content

Commit

Permalink
mobile: fix gradle invocation with sh
Browse files Browse the repository at this point in the history
The current directory is not considered part of the PATH, hence it was
failing on the GitHub Actions runners.
  • Loading branch information
ericswpark committed Mar 17, 2024
1 parent f352054 commit fb35dd4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mobile/gradle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit fb35dd4

Please sign in to comment.