inappmessaging.yml 4.4 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-11
  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-11
  30. strategy:
  31. matrix:
  32. # TODO(#8682): Reenable iPad after fixing Xcode 13 test failures.
  33. # platform: [iOS, iPad]
  34. platform: [iOS]
  35. steps:
  36. - uses: actions/checkout@v2
  37. - name: Setup Bundler
  38. run: scripts/setup_bundler.sh
  39. - name: Prereqs
  40. run: scripts/install_prereqs.sh InAppMessaging ${{ matrix.platform }} xcodebuild
  41. - name: Build and test
  42. run: scripts/third_party/travis/retry.sh scripts/build.sh InAppMessaging ${{ matrix.platform }} xcodebuild
  43. spm:
  44. # Don't run on private repo unless it is a PR.
  45. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  46. runs-on: macos-11
  47. steps:
  48. - uses: actions/checkout@v2
  49. - name: Initialize xcodebuild
  50. run: scripts/setup_spm_tests.sh
  51. - name: iOS Unit Tests
  52. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseInAppMessaging-Beta iOS spmbuildonly
  53. fiam-cron-only:
  54. # Don't run on private repo.
  55. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  56. runs-on: macos-11
  57. strategy:
  58. matrix:
  59. flags: [
  60. '--use-static-frameworks',
  61. '--use-libraries'
  62. ]
  63. platform: [ios, tvos]
  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 InAppMessaging Cron
  70. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseInAppMessaging.podspec --platforms=${{ matrix.platform }} ${{ matrix.flags }}
  71. quickstart:
  72. # Don't run on private repo unless it is a PR.
  73. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  74. env:
  75. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  76. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  77. runs-on: macos-11
  78. steps:
  79. - uses: actions/checkout@v2
  80. - name: Setup quickstart
  81. run: scripts/setup_quickstart.sh inappmessaging
  82. - name: install secret googleservice-info.plist
  83. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-inappmessaging.plist.gpg \
  84. quickstart-ios/inappmessaging/GoogleService-Info.plist "$plist_secret"
  85. - name: Test objc quickstart
  86. run: ([ -z $plist_secret ] ||
  87. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh InAppMessaging true)
  88. - name: Test swift quickstart
  89. run: ([ -z $plist_secret ] ||
  90. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh InAppMessaging true swift)
  91. podspec-presubmit:
  92. # Don't run on private repo unless it is a PR.
  93. if: github.repository == 'Firebase/firebase-ios-sdk' && github.event.pull_request.merged != true && github.event.action != 'closed'
  94. runs-on: macos-11
  95. strategy:
  96. matrix:
  97. podspec: [FirebaseInAppMessaging.podspec, FirebaseInAppMessagingSwift.podspec]
  98. steps:
  99. - uses: actions/checkout@v2
  100. - name: Setup Bundler
  101. run: scripts/setup_bundler.sh
  102. - name: Build and test
  103. 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/'