messaging.yml 3.1 KB

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