crashlytics.yml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 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. crashlytics-cron-only:
  55. runs-on: macos-latest
  56. if: github.event_name == 'schedule'
  57. strategy:
  58. matrix:
  59. target: [ios, tvos, macos] # The macos and tvos tests can hang
  60. flags: [
  61. '--use-modular-headers',
  62. '--use-libraries'
  63. ]
  64. needs: pod-lib-lint
  65. steps:
  66. - uses: actions/checkout@v2
  67. - name: Setup Bundler
  68. run: scripts/setup_bundler.sh
  69. - name: PodLibLint Auth Cron
  70. run: |
  71. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
  72. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}