Skip to content

Commit b7559fa

Browse files
committed
ci(e2e): collapse Android retry loop onto one line
The reactivecircus emulator-runner action runs each newline-separated line of `script:` as a separate `sh -c` invocation. The YAML folded scalar (>-) only collapses lines that share indentation; my retry for-loop had deeper-indented body lines, so YAML preserved those newlines and sh saw `... do` with no `done` -> Syntax error. Put the entire `for/do/done` retry chain on one logical line so the folded scalar produces a single sh command.
1 parent bcf09a1 commit b7559fa

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

.github/workflows/mobile-e2e.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,7 @@ jobs:
287287
script: >-
288288
cd clerk-expo-quickstart/NativeComponentQuickstart &&
289289
npx expo prebuild --clean &&
290-
( ok=0; for i in 1 2 3; do
291-
if npx expo run:android --variant release --no-bundler; then ok=1; break; fi;
292-
echo "expo run:android attempt $i failed (likely gradle wrapper flake); retrying in 15s";
293-
sleep 15;
294-
done; [ "$ok" = 1 ] ) &&
290+
( ok=0; for i in 1 2 3; do if npx expo run:android --variant release --no-bundler; then ok=1; break; fi; echo "expo run:android attempt $i failed; retrying in 15s"; sleep 15; done; [ "$ok" = 1 ] ) &&
295291
cd ../../integration-mobile &&
296292
find flows -type f -name "*.yaml" ! -path "*/common/*"
297293
${FLOWS_FILTER:+-path "*$FLOWS_FILTER*"} -print0

0 commit comments

Comments
 (0)