From abfdd5b93c13e29f081ca31679849ead81f3b932 Mon Sep 17 00:00:00 2001 From: Lewis Phillips Date: Fri, 7 Feb 2025 14:41:23 +0000 Subject: [PATCH] ci: Add debug info for detox tests --- apps/ledger-live-mobile/README.md | 2 +- apps/ledger-live-mobile/scripts/post.mjs | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/ledger-live-mobile/README.md b/apps/ledger-live-mobile/README.md index 8c64d602c0e1..959446c66be2 100644 --- a/apps/ledger-live-mobile/README.md +++ b/apps/ledger-live-mobile/README.md @@ -211,4 +211,4 @@ For a smooth and quick integration: - See the developers’ documentation on the [Developer Portal](https://developers.ledger.com/docs/coin/general-process/) and - Go on [Discord](https://developers.ledger.com/discord-pro/) to chat with developer support and the developer community. ---- \ No newline at end of file +--- diff --git a/apps/ledger-live-mobile/scripts/post.mjs b/apps/ledger-live-mobile/scripts/post.mjs index 6226c9be0c42..1ce358d88577 100644 --- a/apps/ledger-live-mobile/scripts/post.mjs +++ b/apps/ledger-live-mobile/scripts/post.mjs @@ -53,7 +53,12 @@ function runHashChecks(writeCache = false) { const lock = join(__dirname, "..", "ios", "Podfile.lock"); const pkg = join(__dirname, "..", "package.json"); - if (!existsSync(pods)) return false; + if (!existsSync(pods)) { + + echo(chalk.yellow("DEBUG pods don't exist")); + + return false; + } const podsHash = computeMetaHash([pods]); const lockHash = computeMetaHash([lock]); @@ -80,6 +85,9 @@ function runHashChecks(writeCache = false) { return false; } + echo(chalk.yellow("DEBUG cache:" + JSON.stringify(cache))); + echo(chalk.yellow("DEBUG result:" + JSON.stringify(result))); + return compareHashes(cache, result); }