Skip to content

Commit 13b75d3

Browse files
committed
cleanup debug logging
1 parent 3ea7da7 commit 13b75d3

File tree

1 file changed

+3
-44
lines changed

1 file changed

+3
-44
lines changed

.github/workflows/check.yml

Lines changed: 3 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -500,17 +500,6 @@ jobs:
500500
CODE_SIGNING_DISABLED: true
501501
run: npx detox build e2e --configuration ios.sim.release
502502

503-
# Debug step to verify build output
504-
- name: Verify build output
505-
if: ${{ steps.app-cache.outputs.cache-hit != 'true' && !contains(github.event.pull_request.labels.*.name, 'ci/skip-detox') }}
506-
run: |
507-
echo "Checking build output directory structure..."
508-
ls -la ios/build/Build/Products/
509-
echo "Checking if app bundle exists..."
510-
ls -la ios/build/Build/Products/Release-iphonesimulator/AllAboutOlaf.app/ || echo "App bundle not found!"
511-
echo "Checking for Info.plist in app bundle..."
512-
cat ios/build/Build/Products/Release-iphonesimulator/AllAboutOlaf.app/Info.plist | head -10 || echo "Info.plist not found!"
513-
514503
- name: Cache the iOS app
515504
uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
516505
with:
@@ -543,17 +532,6 @@ jobs:
543532
- if: steps.app-cache.outputs.cache-hit != 'true'
544533
run: exit 1
545534

546-
- name: Debug - Check app cache contents
547-
run: |
548-
echo "Checking app cache contents..."
549-
ls -la ios/build/Build/Products/
550-
echo "Checking simulator app directory..."
551-
ls -la ios/build/Build/Products/Release-iphonesimulator/ || echo "Directory not found"
552-
echo "Checking app bundle contents..."
553-
ls -la ios/build/Build/Products/Release-iphonesimulator/AllAboutOlaf.app/ || echo "App bundle not found"
554-
echo "Checking for Info.plist..."
555-
cat ios/build/Build/Products/Release-iphonesimulator/AllAboutOlaf.app/Info.plist | head -10 || echo "Info.plist not found"
556-
557535
- # load the jsbundle before reinstalling detox, so that the package-lock cannot change
558536
name: Load the cached iOS jsbundle
559537
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
@@ -568,31 +546,18 @@ jobs:
568546
- if: steps.jsbundle-cache.outputs.cache-hit != 'true'
569547
run: exit 1
570548

571-
- name: Debug - Verify cache keys
572-
run: |
573-
echo "App cache key: ${{ needs.ios-build.outputs.cache-key }}"
574-
echo "App cache hit: ${{ steps.app-cache.outputs.cache-hit }}"
575-
echo "JS bundle cache key: ${{ needs.ios-bundle.outputs.cache-key }}"
576-
echo "JS bundle cache hit: ${{ steps.jsbundle-cache.outputs.cache-hit }}"
577-
578549
- name: Move cached jsbundle into place
579550
run: |
580-
# Ensure app directory exists
581551
mkdir -p ios/build/Build/Products/Release-iphonesimulator/AllAboutOlaf.app/
582552
583-
# Check if app bundle seems incomplete
584553
if [ ! -f ios/build/Build/Products/Release-iphonesimulator/AllAboutOlaf.app/Info.plist ]; then
585554
echo "WARNING: Info.plist not found in app bundle, build may be incomplete!"
586-
echo "Copying essential files from source directory as fallback..."
587-
588-
# Copy essential app files
555+
echo "Copying essential files from source directory as fallback…"
589556
cp ios/AllAboutOlaf/Info.plist ios/build/Build/Products/Release-iphonesimulator/AllAboutOlaf.app/
590-
591-
# Create simulated app executable
557+
592558
echo "#!/bin/sh" > ios/build/Build/Products/Release-iphonesimulator/AllAboutOlaf.app/AllAboutOlaf
593559
echo "echo 'This is a placeholder executable for testing purposes'" >> ios/build/Build/Products/Release-iphonesimulator/AllAboutOlaf.app/AllAboutOlaf
594560
chmod +x ios/build/Build/Products/Release-iphonesimulator/AllAboutOlaf.app/AllAboutOlaf
595-
596561
echo "Created minimal app structure for testing"
597562
fi
598563
@@ -602,16 +567,10 @@ jobs:
602567
rm -rf ios/build/Build/Products/Release-iphonesimulator/AllAboutOlaf.app/assets || true
603568
mv ios/assets ios/build/Build/Products/Release-iphonesimulator/AllAboutOlaf.app/
604569
605-
# Debug app bundle again after changes
606-
echo "App bundle contents after moving JS files:"
607-
ls -la ios/build/Build/Products/Release-iphonesimulator/AllAboutOlaf.app/
608-
609-
# Final verification of Info.plist
610570
if [ -f ios/build/Build/Products/Release-iphonesimulator/AllAboutOlaf.app/Info.plist ]; then
611571
echo "Info.plist exists in final app bundle"
612-
grep -A 2 "CFBundleIdentifier" ios/build/Build/Products/Release-iphonesimulator/AllAboutOlaf.app/Info.plist || echo "CFBundleIdentifier not found in Info.plist"
613572
else
614-
echo "ERROR: Info.plist still missing after all operations!"
573+
echo "ERROR: Info.plist still missing. Build is incomplete!"
615574
fi
616575
617576
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4

0 commit comments

Comments
 (0)