messaging.yml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. name: messaging
  2. on:
  3. pull_request:
  4. paths:
  5. - 'Firebase/Messaging/**'
  6. - 'Examples/Messaging/Sample/**'
  7. #Podspec
  8. - 'FirebaseMessaging.podspec'
  9. - '.github/workflows/messaging.yml'
  10. schedule:
  11. # Run every day at 11pm (PST) - cron uses UTC times
  12. - cron: '0 7 * * *'
  13. jobs:
  14. pod-lib-lint:
  15. runs-on: macOS-latest
  16. strategy:
  17. matrix:
  18. target: [ios, tvos, macos]
  19. steps:
  20. - uses: actions/checkout@v2
  21. - name: Setup Bundler
  22. run: scripts/setup_bundler.sh
  23. - name: Build and test
  24. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMessaging.podspec --platforms=${{ matrix.target }}
  25. catalyst:
  26. runs-on: macOS-latest
  27. steps:
  28. - uses: actions/checkout@v2
  29. - name: Setup Bundler
  30. run: scripts/setup_bundler.sh
  31. - name: Setup project and Build Catalyst
  32. run: scripts/test_catalyst.sh FirebaseMessaging build
  33. quickstart:
  34. runs-on: macOS-latest
  35. steps:
  36. - uses: actions/checkout@v2
  37. - name: Setup quickstart
  38. run: scripts/setup_quickstart.sh messaging
  39. - name: Install Secret GoogleService-Info.plist
  40. env:
  41. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  42. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-messaging.plist.gpg \
  43. quickstart-ios/messaging/GoogleService-Info.plist "$plist_secret"
  44. - name: Install Secret FIREGSignInInfo.h
  45. env:
  46. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  47. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  48. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  49. - name: Test quickstart
  50. run: scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Messaging
  51. pod-lib-lint-watchos:
  52. runs-on: macOS-latest
  53. steps:
  54. - uses: actions/checkout@v2
  55. - name: Setup Bundler
  56. run: scripts/setup_bundler.sh
  57. - name: Build and test
  58. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMessaging.podspec --skip-tests --platforms=watchos
  59. messaging-cron-only:
  60. runs-on: macos-latest
  61. if: github.event_name == 'schedule'
  62. strategy:
  63. matrix:
  64. target: [ios, tvos, macos]
  65. flags: [
  66. '--use-modular-headers',
  67. '--skip-tests --use-libraries'
  68. ]
  69. needs: pod-lib-lint
  70. steps:
  71. - uses: actions/checkout@v2
  72. - name: Setup Bundler
  73. run: scripts/setup_bundler.sh
  74. - name: PodLibLint Messaging Cron
  75. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMessaging.podspec --platforms=${{ matrix.target }}
  76. messaging-watchos-cron-only:
  77. runs-on: macos-latest
  78. if: github.event_name == 'schedule'
  79. strategy:
  80. matrix:
  81. flags: [
  82. '--skip-tests --use-modular-headers',
  83. '--skip-tests --use-libraries'
  84. ]
  85. needs: pod-lib-lint-watchos
  86. steps:
  87. - uses: actions/checkout@v2
  88. - name: Setup Bundler
  89. run: scripts/setup_bundler.sh
  90. - name: PodLibLint Messaging Cron
  91. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMessaging.podspec --platforms=watchos
  92. messaging-sample-build-test:
  93. runs-on: macos-latest
  94. steps:
  95. - uses: actions/checkout@v2
  96. - name: Setup Bundler
  97. run: scripts/setup_bundler.sh
  98. - name: Prereqs
  99. run: scripts/install_prereqs.sh MessagingSample iOS
  100. - name: Build
  101. run: scripts/build.sh MessagingSample iOS