inappmessaging.yml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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 11pm (PST) - cron uses UTC times
  11. - cron: '0 7 * * *'
  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. steps:
  18. - uses: actions/checkout@v2
  19. - name: Setup Bundler
  20. run: scripts/setup_bundler.sh
  21. - name: FirebaseInAppMessaging
  22. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseInAppMessaging.podspec
  23. tests:
  24. # Don't run on private repo unless it is a PR.
  25. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  26. runs-on: macOS-latest
  27. strategy:
  28. matrix:
  29. platform: [iOS, iPad]
  30. steps:
  31. - uses: actions/checkout@v2
  32. - name: Setup Bundler
  33. run: scripts/setup_bundler.sh
  34. - name: Prereqs
  35. run: scripts/install_prereqs.sh InAppMessaging ${{ matrix.platform }} xcodebuild
  36. - name: Build and test
  37. run: scripts/third_party/travis/retry.sh scripts/build.sh InAppMessaging ${{ matrix.platform }} xcodebuild
  38. spm:
  39. # Don't run on private repo unless it is a PR.
  40. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  41. runs-on: macOS-latest
  42. steps:
  43. - uses: actions/checkout@v2
  44. - name: Xcode 12
  45. run: sudo xcode-select -s /Applications/Xcode_12.app/Contents/Developer
  46. - name: Initialize xcodebuild
  47. run: xcodebuild -list
  48. - name: iOS Unit Tests
  49. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseInAppMessaging-Beta iOS spmbuildonly
  50. fiam-cron-only:
  51. # Don't run on private repo.
  52. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  53. runs-on: macos-latest
  54. strategy:
  55. matrix:
  56. flags: [
  57. '--use-static-frameworks',
  58. '--use-libraries'
  59. ]
  60. platform: [ios, tvos]
  61. needs: pod_lib_lint
  62. steps:
  63. - uses: actions/checkout@v2
  64. - name: Setup Bundler
  65. run: scripts/setup_bundler.sh
  66. - name: PodLibLint InAppMessaging Cron
  67. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseInAppMessaging.podspec --platforms=${{ matrix.platform }} ${{ matrix.flags }}
  68. quickstart:
  69. # Don't run on private repo unless it is a PR.
  70. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  71. env:
  72. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  73. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  74. runs-on: macOS-latest
  75. steps:
  76. - uses: actions/checkout@v2
  77. - name: Setup quickstart
  78. run: scripts/setup_quickstart.sh inappmessaging
  79. - name: install secret googleservice-info.plist
  80. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-inappmessaging.plist.gpg \
  81. quickstart-ios/inappmessaging/GoogleService-Info.plist "$plist_secret"
  82. - name: Install Secret FIREGSignInInfo.h
  83. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  84. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  85. - name: Test objc quickstart
  86. run: ([ -z $plist_secret ] ||
  87. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh InAppMessaging)
  88. - name: Test swift quickstart
  89. run: ([ -z $plist_secret ] ||
  90. scripts/third_party/travis/retry.sh scripts/test_quickstart.sh InAppMessaging swift)