crashlytics.yml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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 8pm (PST) - cron uses UTC times
  12. - cron: '0 4 * * *'
  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: Xcode 12
  35. run: sudo xcode-select -s /Applications/Xcode_12.app/Contents/Developer
  36. - name: Initialize xcodebuild
  37. run: xcodebuild -list
  38. - name: iOS Unit Tests
  39. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseCrashlytics iOS spmbuildonly
  40. spm-cron:
  41. # Don't run on private repo.
  42. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  43. runs-on: macOS-latest
  44. strategy:
  45. matrix:
  46. target: [tvOS, macOS, catalyst]
  47. steps:
  48. - uses: actions/checkout@v2
  49. - name: Xcode 12
  50. run: sudo xcode-select -s /Applications/Xcode_12.app/Contents/Developer
  51. - name: Initialize xcodebuild
  52. run: xcodebuild -list
  53. - name: Unit Tests
  54. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseCrashlytics ${{ matrix.target }} spmbuildonly
  55. catalyst:
  56. # Don't run on private repo unless it is a PR.
  57. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  58. runs-on: macOS-latest
  59. steps:
  60. - uses: actions/checkout@v2
  61. - name: Setup Bundler
  62. run: scripts/setup_bundler.sh
  63. - name: Setup project and Build for Catalyst
  64. run: scripts/test_catalyst.sh FirebaseCrashlytics test FirebaseCrashlytics-Unit-unit
  65. quickstart:
  66. # Don't run on private repo unless it is a PR.
  67. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  68. env:
  69. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  70. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  71. runs-on: macOS-latest
  72. steps:
  73. - uses: actions/checkout@v2
  74. - name: Setup quickstart
  75. run: scripts/setup_quickstart.sh crashlytics
  76. - name: Install Secret GoogleService-Info.plist
  77. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-crashlytics.plist.gpg \
  78. quickstart-ios/crashlytics/GoogleService-Info.plist "$plist_secret"
  79. - name: Install Secret FIREGSignInInfo.h
  80. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  81. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  82. - name: Test objc quickstart
  83. run: |
  84. mkdir quickstart-ios/crashlytics/Pods/FirebaseCrashlytics
  85. # Set the deployed pod location of run and upload-symbols with the development pod version.
  86. cp Crashlytics/run quickstart-ios/crashlytics/Pods/FirebaseCrashlytics/
  87. cp Crashlytics/upload-symbols quickstart-ios/crashlytics/Pods/FirebaseCrashlytics/
  88. ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Crashlytics)
  89. - name: Test swift quickstart
  90. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Crashlytics swift)
  91. crashlytics-cron-only:
  92. # Don't run on private repo.
  93. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  94. runs-on: macos-latest
  95. strategy:
  96. matrix:
  97. # Disable watchos because it does not support XCTest.
  98. target: [ios, tvos, macos, watchos --skip-tests]
  99. flags: [
  100. '--use-static-frameworks',
  101. '--use-libraries'
  102. ]
  103. needs: pod-lib-lint
  104. steps:
  105. - uses: actions/checkout@v2
  106. - name: Setup Bundler
  107. run: scripts/setup_bundler.sh
  108. - name: PodLibLint Auth Cron
  109. run: |
  110. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
  111. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}