storage.yml 3.6 KB

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