crashlytics.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. name: crashlytics
  2. on:
  3. pull_request:
  4. paths:
  5. - 'Crashlytics**'
  6. - '.github/workflows/crashlytics.yml'
  7. - 'Gemfile'
  8. schedule:
  9. # Run every day at 11pm (PST) - cron uses UTC times
  10. - cron: '0 7 * * *'
  11. jobs:
  12. pod-lib-lint:
  13. runs-on: macOS-latest
  14. strategy:
  15. matrix:
  16. target: [ios, tvos, macos]
  17. steps:
  18. - uses: actions/checkout@v2
  19. - name: Setup Bundler
  20. run: scripts/setup_bundler.sh
  21. - name: Build and test
  22. run: |
  23. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }}
  24. catalyst:
  25. runs-on: macOS-latest
  26. steps:
  27. - uses: actions/checkout@v2
  28. - name: Setup Bundler
  29. run: scripts/setup_bundler.sh
  30. - name: Setup project and Build for Catalyst
  31. run: scripts/test_catalyst.sh FirebaseCrashlytics build FirebaseCrashlytics-Unit-unit
  32. quickstart:
  33. env:
  34. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  35. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  36. runs-on: macOS-latest
  37. steps:
  38. - uses: actions/checkout@v2
  39. - name: Setup quickstart
  40. run: scripts/setup_quickstart.sh crashlytics
  41. - name: Install Secret GoogleService-Info.plist
  42. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-crashlytics.plist.gpg \
  43. quickstart-ios/crashlytics/GoogleService-Info.plist "$plist_secret"
  44. - name: Install Secret FIREGSignInInfo.h
  45. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  46. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  47. - name: Test objc quickstart
  48. run: |
  49. mkdir quickstart-ios/crashlytics/Pods/FirebaseCrashlytics
  50. # Set the deployed pod location of run and upload-symbols with the development pod version.
  51. cp Crashlytics/run quickstart-ios/crashlytics/Pods/FirebaseCrashlytics/
  52. cp Crashlytics/upload-symbols quickstart-ios/crashlytics/Pods/FirebaseCrashlytics/
  53. ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Crashlytics)
  54. - name: Test swift quickstart
  55. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Crashlytics swift)
  56. crashlytics-cron-only:
  57. runs-on: macos-latest
  58. if: github.event_name == 'schedule'
  59. strategy:
  60. matrix:
  61. target: [ios, tvos, macos] # The macos and tvos tests can hang
  62. flags: [
  63. '--use-modular-headers',
  64. '--use-libraries'
  65. ]
  66. needs: pod-lib-lint
  67. steps:
  68. - uses: actions/checkout@v2
  69. - name: Setup Bundler
  70. run: scripts/setup_bundler.sh
  71. - name: PodLibLint Auth Cron
  72. run: |
  73. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
  74. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}