crashlytics.yml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. jobs:
  14. pod-lib-lint:
  15. # Don't run on private repo unless it is a PR.
  16. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  17. runs-on: macOS-latest
  18. strategy:
  19. matrix:
  20. target: [ios, tvos, macos, watchos --skip-tests]
  21. steps:
  22. - uses: actions/checkout@v2
  23. - name: Setup Bundler
  24. run: scripts/setup_bundler.sh
  25. - name: Build and test
  26. run: |
  27. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }}
  28. spm:
  29. # Don't run on private repo unless it is a PR.
  30. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  31. runs-on: macOS-latest
  32. steps:
  33. - uses: actions/checkout@v2
  34. - name: Initialize xcodebuild
  35. run: scripts/setup_spm_tests.sh
  36. - name: iOS Unit Tests
  37. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseCrashlytics iOS spmbuildonly
  38. spm-cron:
  39. # Don't run on private repo.
  40. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  41. runs-on: macOS-latest
  42. strategy:
  43. matrix:
  44. target: [tvOS, macOS, catalyst]
  45. steps:
  46. - uses: actions/checkout@v2
  47. - name: Initialize xcodebuild
  48. run: scripts/setup_spm_tests.sh
  49. - name: Unit Tests
  50. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseCrashlytics ${{ matrix.target }} spmbuildonly
  51. catalyst:
  52. # Don't run on private repo unless it is a PR.
  53. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  54. runs-on: macOS-latest
  55. steps:
  56. - uses: actions/checkout@v2
  57. - name: Setup Bundler
  58. run: scripts/setup_bundler.sh
  59. - name: Setup project and Build for Catalyst
  60. run: scripts/test_catalyst.sh FirebaseCrashlytics test FirebaseCrashlytics-Unit-unit
  61. quickstart:
  62. # Don't run on private repo unless it is a PR.
  63. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  64. env:
  65. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  66. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  67. runs-on: macOS-latest
  68. steps:
  69. - uses: actions/checkout@v2
  70. - name: Setup quickstart
  71. run: scripts/setup_quickstart.sh crashlytics
  72. - name: Install Secret GoogleService-Info.plist
  73. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-crashlytics.plist.gpg \
  74. quickstart-ios/crashlytics/GoogleService-Info.plist "$plist_secret"
  75. - name: Install Secret FIREGSignInInfo.h
  76. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  77. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  78. - name: Test objc quickstart
  79. run: |
  80. mkdir quickstart-ios/crashlytics/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/Pods/FirebaseCrashlytics/
  83. cp Crashlytics/upload-symbols quickstart-ios/crashlytics/Pods/FirebaseCrashlytics/
  84. ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Crashlytics)
  85. - name: Test swift quickstart
  86. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Crashlytics swift)
  87. crashlytics-cron-only:
  88. # Don't run on private repo.
  89. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  90. runs-on: macos-latest
  91. strategy:
  92. matrix:
  93. # Disable watchos because it does not support XCTest.
  94. target: [ios, tvos, macos, watchos --skip-tests]
  95. flags: [
  96. '--use-static-frameworks',
  97. '--use-libraries'
  98. ]
  99. needs: pod-lib-lint
  100. steps:
  101. - uses: actions/checkout@v2
  102. - name: Setup Bundler
  103. run: scripts/setup_bundler.sh
  104. - name: PodLibLint Auth Cron
  105. run: |
  106. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
  107. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
  108. podspec-presubmit:
  109. # Don't run on private repo unless it is a PR.
  110. if: github.repository == 'Firebase/firebase-ios-sdk' && github.event.pull_request.merged != true && github.event.action != 'closed'
  111. runs-on: macOS-latest
  112. steps:
  113. - uses: actions/checkout@v2
  114. - name: Setup Bundler
  115. run: scripts/setup_bundler.sh
  116. - name: Build and test
  117. run: scripts/third_party/travis/retry.sh pod spec lint FirebaseCrashlytics.podspec --skip-tests --sources='https://github.com/firebase/SpecsTesting','https://github.com/firebase/SpecsDev.git','https://github.com/firebase/SpecsStaging.git','https://cdn.cocoapods.org/'