Skip to content

Commit a4de3d3

Browse files
fix: restore cocoapods setup
1 parent b120339 commit a4de3d3

1 file changed

Lines changed: 28 additions & 1 deletion

File tree

.github/workflows/e2e.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,33 @@ jobs:
6666
with:
6767
xcode-version: latest-stable
6868

69+
- name: Restore cocoapods
70+
if: env.turbo_cache_hit != 1
71+
id: cocoapods-cache
72+
uses: actions/cache/restore@v4
73+
with:
74+
path: |
75+
**/ios/Pods
76+
key: ${{ runner.os }}-cocoapods-${{ hashFiles('apps/example/ios/Podfile.lock') }}
77+
restore-keys: |
78+
${{ runner.os }}-cocoapods-
79+
80+
- name: Install cocoapods
81+
if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
82+
run: |
83+
cd apps/example/ios
84+
pod install
85+
env:
86+
NO_FLIPPER: 1
87+
88+
- name: Cache cocoapods
89+
if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
90+
uses: actions/cache/save@v4
91+
with:
92+
path: |
93+
**/ios/Pods
94+
key: ${{ steps.cocoapods-cache.outputs.cache-key }}
95+
6996
- name: Install Maestro CLI
7097
run: |
7198
curl -Ls "https://get.maestro.mobile.dev" | bash
@@ -112,7 +139,7 @@ jobs:
112139
- name: Finalize Android SDK
113140
run: |
114141
/bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null"
115-
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "emulator" "platform-tools" "skins;android-36"
142+
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "emulator" "platform-tools"
116143
echo "$ANDROID_HOME/cmdline-tools/latest/bin" >> $GITHUB_PATH
117144
echo "$ANDROID_HOME/platform-tools" >> $GITHUB_PATH
118145
echo "$ANDROID_HOME/emulator" >> $GITHUB_PATH

0 commit comments

Comments
 (0)