Skip to content

Commit

Permalink
Merge branch 'feature/fix-ci'
Browse files Browse the repository at this point in the history
  • Loading branch information
PerThomasHaga committed Jul 9, 2024
2 parents bf524ac + e7698e4 commit c7cfaee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127349,8 +127349,9 @@ async function getScreenshotsFromXcresult(xcresultPath, destinationPath) {
await exec("brew install imagemagick --quiet");
await exec("brew install chargepoint/xcparse/xcparse --quiet");
await exec(`rm -rf ${destinationPath}`);
await exec(`xcparse screenshots --test ${xcresultPath} ${destinationPath}`);
await exec(`${scriptPath} ${destinationPath}`);
// Ensure the script path is safely handled
const escapedScriptPath = `"${scriptPath.replace(/"/g, '\\"')}"`;
await exec(`${escapedScriptPath} ${destinationPath}`);
}
async function upload(path, destinationPath) {
initializeFirebase();
Expand Down
6 changes: 4 additions & 2 deletions src/utils/uploadScreenshots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ async function getScreenshotsFromXcresult(
await exec("brew install imagemagick --quiet");
await exec("brew install chargepoint/xcparse/xcparse --quiet");
await exec(`rm -rf ${destinationPath}`);
await exec(`xcparse screenshots --test ${xcresultPath} ${destinationPath}`);
await exec(`${scriptPath} ${destinationPath}`);

// Ensure the script path is safely handled
const escapedScriptPath = `"${scriptPath.replace(/"/g, '\\"')}"`;
await exec(`${escapedScriptPath} ${destinationPath}`);
}

async function upload(path: string, destinationPath: string): Promise<string> {
Expand Down

0 comments on commit c7cfaee

Please sign in to comment.