storage.yml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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.GHASecretsGPGPassphrase1 }}
  15. runs-on: macos-latest
  16. strategy:
  17. matrix:
  18. pod: [Storage, StorageSwift]
  19. steps:
  20. - uses: actions/checkout@v2
  21. - name: Setup Bundler
  22. run: scripts/setup_bundler.sh
  23. - name: Install Secret GoogleService-Info.plist
  24. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/storage-db-plist.gpg \
  25. FirebaseStorage/Tests/Integration/Resources/GoogleService-Info.plist "$plist_secret"
  26. - name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
  27. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/build.sh ${{ matrix.pod }} all)
  28. catalyst:
  29. runs-on: macOS-latest
  30. steps:
  31. - uses: actions/checkout@v2
  32. - name: Setup Bundler
  33. run: scripts/setup_bundler.sh
  34. - name: Setup project and Build for Catalyst
  35. # Only run the unit tests on Catalyst
  36. run: scripts/test_catalyst.sh FirebaseStorage test FirebaseStorage-Unit-unit
  37. quickstart:
  38. env:
  39. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  40. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  41. runs-on: macOS-latest
  42. steps:
  43. - uses: actions/checkout@v2
  44. - name: Setup quickstart
  45. run: scripts/setup_quickstart.sh storage
  46. - name: Install Secret GoogleService-Info.plist
  47. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-storage.plist.gpg \
  48. quickstart-ios/storage/GoogleService-Info.plist "$plist_secret"
  49. - name: Install Secret FIREGSignInInfo.h
  50. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  51. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  52. - name: Test quickstart
  53. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Storage)
  54. pod-lib-lint:
  55. runs-on: macOS-latest
  56. strategy:
  57. matrix:
  58. target: [ios, tvos, macos, watchos]
  59. steps:
  60. - uses: actions/checkout@v2
  61. - name: Setup Bundler
  62. run: scripts/setup_bundler.sh
  63. - name: Build and test
  64. run: |
  65. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorage.podspec --skip-tests --platforms=${{ matrix.target }}
  66. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorageSwift.podspec --skip-tests --platforms=${{ matrix.target }}
  67. storage-cron-only:
  68. runs-on: macos-latest
  69. if: github.event_name == 'schedule'
  70. strategy:
  71. matrix:
  72. target: [ios, tvos, macos, watchos]
  73. flags: [
  74. '--skip-tests --use-modular-headers',
  75. '--skip-tests --use-libraries'
  76. ]
  77. needs: pod-lib-lint
  78. steps:
  79. - uses: actions/checkout@v2
  80. - name: Setup Bundler
  81. run: scripts/setup_bundler.sh
  82. - name: PodLibLint Storage Cron
  83. run: |
  84. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorage.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
  85. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorage.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}