inappmessaging.yml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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: Xcode 12
  48. run: sudo xcode-select -s /Applications/Xcode_12.app/Contents/Developer
  49. - name: Initialize xcodebuild
  50. run: xcodebuild -list
  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-latest
  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-latest
  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: Install Secret FIREGSignInInfo.h
  86. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  87. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  88. - name: Test objc quickstart
  89. run: ([ -z $plist_secret ] ||
  90. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh InAppMessaging)
  91. - name: Test swift quickstart
  92. run: ([ -z $plist_secret ] ||
  93. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh InAppMessaging swift)