crashlytics.yml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. name: crashlytics
  2. on:
  3. pull_request:
  4. paths:
  5. - 'Crashlytics**'
  6. - 'FirebaseCrashlytics.podspec'
  7. - '.github/workflows/crashlytics.yml'
  8. - 'Interop/Analytics/Public/*.h'
  9. - 'Gemfile*'
  10. schedule:
  11. # Run every day at 10am (PST) - cron uses UTC times
  12. - cron: '0 2 * * *'
  13. concurrency:
  14. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  15. cancel-in-progress: true
  16. jobs:
  17. pod-lib-lint:
  18. # Don't run on private repo unless it is a PR.
  19. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  20. runs-on: macos-11
  21. strategy:
  22. matrix:
  23. target: [ios, tvos, macos, watchos --skip-tests]
  24. steps:
  25. - uses: actions/checkout@v2
  26. - name: Setup Bundler
  27. run: scripts/setup_bundler.sh
  28. - name: Build and test
  29. run: |
  30. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }}
  31. spm:
  32. # Don't run on private repo unless it is a PR.
  33. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  34. runs-on: macos-11
  35. strategy:
  36. matrix:
  37. target: [iOS, tvOS, macOS, catalyst, watchOS]
  38. steps:
  39. - uses: actions/checkout@v2
  40. - uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
  41. with:
  42. cache_key: ${{ matrix.os }}
  43. - name: Initialize xcodebuild
  44. run: scripts/setup_spm_tests.sh
  45. - name: Unit Tests
  46. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseCrashlytics ${{ matrix.target }} spmbuildonly
  47. catalyst:
  48. # Don't run on private repo unless it is a PR.
  49. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  50. runs-on: macos-11
  51. steps:
  52. - uses: actions/checkout@v2
  53. - uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
  54. with:
  55. cache_key: ${{ matrix.os }}
  56. - name: Setup Bundler
  57. run: scripts/setup_bundler.sh
  58. - name: Setup project and Build for Catalyst
  59. run: scripts/test_catalyst.sh FirebaseCrashlytics test FirebaseCrashlytics-Unit-unit
  60. quickstart:
  61. # Don't run on private repo unless it is a PR.
  62. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  63. env:
  64. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  65. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  66. runs-on: macos-11
  67. steps:
  68. - uses: actions/checkout@v2
  69. - name: Setup quickstart
  70. run: scripts/setup_quickstart.sh crashlytics
  71. env:
  72. LEGACY: true
  73. - name: Install Secret GoogleService-Info.plist
  74. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-crashlytics.plist.gpg \
  75. quickstart-ios/crashlytics/GoogleService-Info.plist "$plist_secret"
  76. - name: Test objc quickstart
  77. run: |
  78. mkdir quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics
  79. # Set the deployed pod location of run and upload-symbols with the development pod version.
  80. cp Crashlytics/run quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics/
  81. cp Crashlytics/upload-symbols quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/Pods/FirebaseCrashlytics/
  82. ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Crashlytics true)
  83. env:
  84. LEGACY: true
  85. - name: Test swift quickstart
  86. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Crashlytics true swift)
  87. env:
  88. LEGACY: true
  89. crashlytics-cron-only:
  90. # Don't run on private repo.
  91. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  92. runs-on: macos-11
  93. strategy:
  94. matrix:
  95. # Disable watchos because it does not support XCTest.
  96. target: [ios, tvos, macos, watchos --skip-tests]
  97. flags: [
  98. '--use-static-frameworks'
  99. ]
  100. needs: pod-lib-lint
  101. steps:
  102. - uses: actions/checkout@v2
  103. - name: Setup Bundler
  104. run: scripts/setup_bundler.sh
  105. - name: PodLibLint Auth Cron
  106. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}