storage.yml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. name: storage
  2. on:
  3. pull_request:
  4. paths:
  5. - 'FirebaseStorage**'
  6. - '.github/workflows/storage.yml'
  7. - 'scripts/**'
  8. schedule:
  9. # Run every day at 11pm (PST) - cron uses UTC times
  10. - cron: '0 7 * * *'
  11. jobs:
  12. storage:
  13. env:
  14. plist_secret: ${{ secrets.StoragePlistSecret }}
  15. runs-on: macos-latest
  16. steps:
  17. - uses: actions/checkout@v2
  18. - name: Setup Bundler
  19. run: scripts/setup_bundler.sh
  20. - name: Install Secret GoogleService-Info.plist
  21. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/storage-db-plist.gpg \
  22. FirebaseStorage/Tests/Integration/Resources/GoogleService-Info.plist "$plist_secret"
  23. - name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
  24. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/build.sh Storage all)
  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 for Catalyst
  32. # Only run the unit tests on Catalyst
  33. run: scripts/test_catalyst.sh FirebaseStorage test FirebaseStorage-Unit-unit
  34. quickstart:
  35. env:
  36. plist_secret: ${{ secrets.QsStoragePlistSecret }}
  37. signin_secret: ${{ secrets.QsSignInSecret }}
  38. runs-on: macOS-latest
  39. steps:
  40. - uses: actions/checkout@v2
  41. - name: Setup quickstart
  42. run: scripts/setup_quickstart.sh storage
  43. - name: Install Secret GoogleService-Info.plist
  44. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-storage.plist.gpg \
  45. quickstart-ios/storage/GoogleService-Info.plist "$plist_secret"
  46. - name: Install Secret FIREGSignInInfo.h
  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: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Storage)
  51. pod-lib-lint:
  52. runs-on: macOS-latest
  53. strategy:
  54. matrix:
  55. target: [ios, tvos, macos, watchos]
  56. steps:
  57. - uses: actions/checkout@v2
  58. - name: Setup Bundler
  59. run: scripts/setup_bundler.sh
  60. - name: Build and test
  61. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorage.podspec --skip-tests --platforms=${{ matrix.target }}
  62. storage-cron-only:
  63. runs-on: macos-latest
  64. if: github.event_name == 'schedule'
  65. strategy:
  66. matrix:
  67. target: [ios, tvos, macos, watchos]
  68. flags: [
  69. '--skip-tests --use-modular-headers',
  70. '--skip-tests --use-libraries'
  71. ]
  72. needs: pod-lib-lint
  73. steps:
  74. - uses: actions/checkout@v2
  75. - name: Setup Bundler
  76. run: scripts/setup_bundler.sh
  77. - name: PodLibLint Storage Cron
  78. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorage.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}