crashlytics.yml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. name: crashlytics
  2. on:
  3. workflow_dispatch:
  4. pull_request:
  5. paths:
  6. - 'Crashlytics**'
  7. - 'FirebaseCrashlytics.podspec'
  8. - '.github/workflows/crashlytics.yml'
  9. - 'Interop/Analytics/Public/*.h'
  10. - 'Gemfile*'
  11. schedule:
  12. # Run every day at 10am (PST) - cron uses UTC times
  13. - cron: '0 2 * * *'
  14. concurrency:
  15. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  16. cancel-in-progress: true
  17. jobs:
  18. spm:
  19. uses: ./.github/workflows/common.yml
  20. with:
  21. target: FirebaseCrashlyticsUnit
  22. catalyst:
  23. uses: ./.github/workflows/common_catalyst.yml
  24. with:
  25. product: FirebaseCrashlytics
  26. target: FirebaseCrashlytics-Unit-unit
  27. pod-lib-lint:
  28. # Don't run on private repo unless it is a PR.
  29. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  30. strategy:
  31. matrix:
  32. target: [ios, tvos, macos, watchos --skip-tests]
  33. flags: [
  34. '--use-modular-headers --skip-tests',
  35. ''
  36. ]
  37. build-env:
  38. - os: macos-14
  39. xcode: Xcode_16.2
  40. tests:
  41. - os: macos-15
  42. xcode: Xcode_16.2
  43. tests:
  44. runs-on: ${{ matrix.build-env.os }}
  45. steps:
  46. - uses: actions/checkout@v4
  47. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  48. - name: Setup Bundler
  49. run: scripts/setup_bundler.sh
  50. - name: Xcode
  51. run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
  52. - uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
  53. with:
  54. timeout_minutes: 120
  55. max_attempts: 3
  56. retry_on: error
  57. retry_wait_seconds: 120
  58. command: scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }} ${{ matrix.build-env.tests }} ${{ matrix.flags }}
  59. quickstart:
  60. # Don't run on private repo unless it is a PR.
  61. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  62. env:
  63. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  64. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  65. runs-on: macos-15
  66. steps:
  67. - uses: actions/checkout@v4
  68. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  69. - name: Xcode
  70. run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  71. - name: Setup quickstart
  72. run: scripts/setup_quickstart.sh crashlytics
  73. env:
  74. LEGACY: true
  75. - name: Install Secret GoogleService-Info.plist
  76. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-crashlytics.plist.gpg \
  77. quickstart-ios/crashlytics/GoogleService-Info.plist "$plist_secret"
  78. - name: Test swift quickstart
  79. run: |
  80. mkdir quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics
  81. # Set the deployed pod location of run and upload-symbols with the development pod version.
  82. cp Crashlytics/run quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics/
  83. cp Crashlytics/upload-symbols quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics/
  84. ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Crashlytics true swift)
  85. env:
  86. LEGACY: true
  87. quickstart-ftl-cron-only:
  88. # Don't run on private repo.
  89. if: github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule'
  90. env:
  91. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  92. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  93. runs-on: macos-15
  94. steps:
  95. - uses: actions/checkout@v4
  96. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  97. - uses: actions/setup-python@v5
  98. with:
  99. python-version: '3.11'
  100. - name: Xcode
  101. run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  102. - name: Setup quickstart
  103. run: scripts/setup_quickstart.sh crashlytics
  104. env:
  105. LEGACY: true
  106. - name: Install Secret GoogleService-Info.plist
  107. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-crashlytics.plist.gpg \
  108. quickstart-ios/crashlytics/GoogleService-Info.plist "$plist_secret"
  109. - name: Build swift quickstart
  110. run: |
  111. mkdir quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics
  112. # Set the deployed pod location of run and upload-symbols with the development pod version.
  113. cp Crashlytics/run quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics/
  114. cp Crashlytics/upload-symbols quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics/
  115. ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Crashlytics swift)
  116. env:
  117. LEGACY: true
  118. - id: ftl_test
  119. uses: FirebaseExtended/github-actions/firebase-test-lab@v1.4
  120. with:
  121. credentials_json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIALS }}
  122. testapp_dir: quickstart-ios/build-for-testing
  123. test_type: "xctest"
  124. crashlytics-cron-only:
  125. # Don't run on private repo.
  126. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  127. runs-on: macos-15
  128. strategy:
  129. matrix:
  130. # Disable watchos because it does not support XCTest.
  131. target: [ios, tvos, macos, watchos --skip-tests]
  132. flags: [
  133. '--use-static-frameworks'
  134. ]
  135. needs: pod-lib-lint
  136. steps:
  137. - uses: actions/checkout@v4
  138. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  139. - name: Setup Bundler
  140. run: scripts/setup_bundler.sh
  141. - name: Xcode
  142. run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  143. - uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
  144. with:
  145. timeout_minutes: 120
  146. max_attempts: 3
  147. retry_on: error
  148. retry_wait_seconds: 120
  149. command: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}