storage.yml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 quickstart
  55. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Storage)
  56. pod-lib-lint:
  57. runs-on: macOS-latest
  58. strategy:
  59. matrix:
  60. target: [ios, tvos, macos, watchos]
  61. steps:
  62. - uses: actions/checkout@v2
  63. - name: Setup Bundler
  64. run: scripts/setup_bundler.sh
  65. - name: Build and test
  66. run: |
  67. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorage.podspec --skip-tests --platforms=${{ matrix.target }}
  68. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorageSwift.podspec --skip-tests --platforms=${{ matrix.target }}
  69. storage-cron-only:
  70. runs-on: macos-latest
  71. if: github.event_name == 'schedule'
  72. strategy:
  73. matrix:
  74. target: [ios, tvos, macos, watchos]
  75. flags: [
  76. '--skip-tests --use-modular-headers',
  77. '--skip-tests --use-libraries'
  78. ]
  79. needs: pod-lib-lint
  80. steps:
  81. - uses: actions/checkout@v2
  82. - name: Setup Bundler
  83. run: scripts/setup_bundler.sh
  84. - name: PodLibLint Storage Cron
  85. run: |
  86. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorage.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
  87. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorage.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}