Skip to content

Commit 92e46a4

Browse files
feat: add handling pod install failure in apple CI (#2747)
# Summary This PR improve `Example iOS check`, `E2E iOS` and `Example macOS check` CI workflows by adding to them extra steps: - remove pods if `Install Pods` step failed - reinstall pods if `Remove pods` step was successful ## Test Plan Run `Example iOS check`, `E2E iOS` and `Example macOS check` CI workflows. ## Compatibility | OS | Implemented | | ------- | :---------: | | iOS | ✅ | | MacOS | ✅ | | Android | ❌ | | Web | ❌ |
1 parent 042131e commit 92e46a4

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

.github/workflows/e2e-ios.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,20 @@ jobs:
6262
${{ runner.os }}-pods-${{ matrix.working-directory }}-
6363
6464
- name: Install Pods
65+
id: install_pods
66+
continue-on-error: true
67+
working-directory: apps/${{ matrix.working-directory }}/ios
68+
run: bundle install && bundle exec pod install
69+
70+
- if: steps.install_pods.outcome == 'failure'
71+
id: remove_pods
72+
name: Remove pods
73+
working-directory: apps/${{ matrix.working-directory }}/ios
74+
run: rm -rf build Pods Podfile.lock
75+
76+
- if: steps.remove_pods.outcome == 'success'
77+
id: reinstall_pods
78+
name: Reinstall pods
6579
working-directory: apps/${{ matrix.working-directory }}/ios
6680
run: bundle install && bundle exec pod install
6781

.github/workflows/ios-build-test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,20 @@ jobs:
6565
${{ runner.os }}-pods-${{ matrix.working-directory }}-
6666
6767
- name: Install Pods
68+
id: install_pods
69+
continue-on-error: true
70+
working-directory: apps/${{ matrix.working-directory }}/ios
71+
run: bundle install && bundle exec pod install
72+
73+
- if: steps.install_pods.outcome == 'failure'
74+
id: remove_pods
75+
name: Remove pods
76+
working-directory: apps/${{ matrix.working-directory }}/ios
77+
run: rm -rf build Pods Podfile.lock
78+
79+
- if: steps.remove_pods.outcome == 'success'
80+
id: reinstall_pods
81+
name: Reinstall pods
6882
working-directory: apps/${{ matrix.working-directory }}/ios
6983
run: bundle install && bundle exec pod install
7084

.github/workflows/macos-build-test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,20 @@ jobs:
6565
${{ runner.os }}-pods-${{ matrix.working-directory }}-
6666
6767
- name: Install Pods
68+
id: install_pods
69+
continue-on-error: true
70+
working-directory: apps/${{ matrix.working-directory }}/macos
71+
run: bundle install && bundle exec pod install
72+
73+
- if: steps.install_pods.outcome == 'failure'
74+
id: remove_pods
75+
name: Remove pods
76+
working-directory: apps/${{ matrix.working-directory }}/macos
77+
run: rm -rf build Pods Podfile.lock
78+
79+
- if: steps.remove_pods.outcome == 'success'
80+
id: reinstall_pods
81+
name: Reinstall pods
6882
working-directory: apps/${{ matrix.working-directory }}/macos
6983
run: bundle install && bundle exec pod install
7084

0 commit comments

Comments
 (0)