inappmessaging.yml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. name: inappmessaging
  2. on:
  3. pull_request:
  4. paths:
  5. - 'FirebaseInAppMessaging**'
  6. - 'Interop/Analytics/Public/*.h'
  7. - '.github/workflows/inappmessaging.yml'
  8. - 'Gemfile*'
  9. schedule:
  10. # Run every day at 10pm (PST) - cron uses UTC times
  11. - cron: '0 6 * * *'
  12. jobs:
  13. pod_lib_lint:
  14. # Don't run on private repo unless it is a PR.
  15. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  16. runs-on: macOS-latest
  17. strategy:
  18. matrix:
  19. podspec: [FirebaseInAppMessaging.podspec, FirebaseInAppMessagingSwift.podspec]
  20. steps:
  21. - uses: actions/checkout@v2
  22. - name: Setup Bundler
  23. run: scripts/setup_bundler.sh
  24. - name: FirebaseInAppMessaging
  25. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb ${{ matrix.podspec}}
  26. tests:
  27. # Don't run on private repo unless it is a PR.
  28. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  29. runs-on: macOS-latest
  30. strategy:
  31. matrix:
  32. platform: [iOS, iPad]
  33. steps:
  34. - uses: actions/checkout@v2
  35. - name: Setup Bundler
  36. run: scripts/setup_bundler.sh
  37. - name: Prereqs
  38. run: scripts/install_prereqs.sh InAppMessaging ${{ matrix.platform }} xcodebuild
  39. - name: Build and test
  40. run: scripts/third_party/travis/retry.sh scripts/build.sh InAppMessaging ${{ matrix.platform }} xcodebuild
  41. spm:
  42. # Don't run on private repo unless it is a PR.
  43. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  44. runs-on: macOS-latest
  45. steps:
  46. - uses: actions/checkout@v2
  47. - name: Initialize xcodebuild
  48. run: scripts/setup_spm_tests.sh
  49. - name: iOS Unit Tests
  50. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseInAppMessaging-Beta iOS spmbuildonly
  51. fiam-cron-only:
  52. # Don't run on private repo.
  53. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  54. runs-on: macos-latest
  55. strategy:
  56. matrix:
  57. flags: [
  58. '--use-static-frameworks',
  59. '--use-libraries'
  60. ]
  61. platform: [ios, tvos]
  62. needs: pod_lib_lint
  63. steps:
  64. - uses: actions/checkout@v2
  65. - name: Setup Bundler
  66. run: scripts/setup_bundler.sh
  67. - name: PodLibLint InAppMessaging Cron
  68. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseInAppMessaging.podspec --platforms=${{ matrix.platform }} ${{ matrix.flags }}
  69. quickstart:
  70. # Don't run on private repo unless it is a PR.
  71. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  72. env:
  73. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  74. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  75. runs-on: macOS-latest
  76. steps:
  77. - uses: actions/checkout@v2
  78. - name: Setup quickstart
  79. run: scripts/setup_quickstart.sh inappmessaging
  80. - name: install secret googleservice-info.plist
  81. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-inappmessaging.plist.gpg \
  82. quickstart-ios/inappmessaging/GoogleService-Info.plist "$plist_secret"
  83. - name: Install Secret FIREGSignInInfo.h
  84. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  85. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  86. - name: Test objc quickstart
  87. run: ([ -z $plist_secret ] ||
  88. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh InAppMessaging)
  89. - name: Test swift quickstart
  90. run: ([ -z $plist_secret ] ||
  91. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh InAppMessaging swift)
  92. podspec-presubmit:
  93. # Don't run on private repo unless it is a PR.
  94. if: github.repository == 'Firebase/firebase-ios-sdk' && github.event.pull_request.merged != true && github.event.action != 'closed'
  95. runs-on: macOS-latest
  96. strategy:
  97. matrix:
  98. podspec: [FirebaseInAppMessaging.podspec, FirebaseInAppMessagingSwift.podspec]
  99. steps:
  100. - uses: actions/checkout@v2
  101. - name: Setup Bundler
  102. run: scripts/setup_bundler.sh
  103. - name: Build and test
  104. run: scripts/third_party/travis/retry.sh pod spec lint ${{ matrix.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/'