Skip to content

Commit

Permalink
more pod repo update trial and error for CI
Browse files Browse the repository at this point in the history
(works locally, of course)
  • Loading branch information
mikehardy committed Nov 13, 2024
1 parent 049c073 commit cc60092
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1,918 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/tests_e2e_ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ jobs:
key: ${{ runner.os }}-ios-pods-v3-${{ hashFiles('tests/ios/Podfile.lock') }}
restore-keys: ${{ runner.os }}-ios-pods-v3

- name: Pod Repo update
uses: nick-fields/retry@v3
with:
timeout_minutes: 20
retry_wait_seconds: 30
max_attempts: 3
command: pod repo update

- name: Pod Install
uses: nick-fields/retry@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
"tests:ios:test-reuse": "cd tests && SIMCTL_CHILD_GULGeneratedClassDisposeDisabled=1 yarn detox test --configuration ios.sim.debug --reuse --loglevel warn",
"tests:ios:test-cover": "cd tests && SIMCTL_CHILD_GULGeneratedClassDisposeDisabled=1 yarn detox test --configuration ios.sim.debug --loglevel verbose",
"tests:ios:test-cover-reuse": "cd tests && SIMCTL_CHILD_GULGeneratedClassDisposeDisabled=1 node_modules/.bin/nyc yarn detox test --configuration ios.sim.debug --reuse --loglevel warn",
"tests:ios:pod:install": "pod repo update && cd tests && rm -f ios/Podfile.lock && rm -rf ios/ReactNativeFirebaseDemo.xcworkspace && cd ios && pod install",
"tests:ios:pod:install": "cd tests && rm -f ios/Podfile.lock && rm -rf ios/ReactNativeFirebaseDemo.xcworkspace && cd ios && pod repo update && pod install",
"tests:macos:build": "cd tests && yarn build:macos",
"tests:macos:pod:install": "pod repo update && cd tests && rm -f macos/Podfile.lock && cd macos && pod install",
"tests:macos:pod:install": "cd tests && rm -f macos/Podfile.lock && cd macos && pod repo update && pod install",
"tests:macos:test-cover": "cd tests && npx jet --target=macos --coverage",
"format:markdown": "prettier --write \"docs/**/*.md\""
},
Expand Down
2 changes: 1 addition & 1 deletion packages/app/RNFBApp.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Pod::Spec.new do |s|
# they do not have in their local spec repo, and they do not know they need to
# run pod repo update and/or remove their Podfile.lock. This is detectable and we
# can provide guidance and fail-fast to avoid incorrect dependency resolution
firebaseCoreSpec = `pod spec which --version=#{firebase_sdk_version} FirebaseCore`
firebaseCoreSpec = `pod spec which --version=#{firebase_sdk_version} FirebaseCore2`
if !firebaseCoreSpec.include? firebase_sdk_version
Pod::UI.puts "firebaseCoreSpec search result for #{firebase_sdk_version} was '#{firebaseCoreSpec}"
firebaseCurrentCoreSpec = `pod spec which FirebaseCore`
Expand Down
Loading

0 comments on commit cc60092

Please sign in to comment.