storage.yml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. name: storage
  2. on:
  3. pull_request:
  4. paths:
  5. - 'FirebaseStorage**'
  6. - 'Interop/Auth/Public/*.h'
  7. - '.github/workflows/storage.yml'
  8. - 'scripts/**'
  9. # Rebuild on Ruby infrastructure changes.
  10. - 'Gemfile*'
  11. schedule:
  12. # Run every day at 12am (PST) - cron uses UTC times
  13. - cron: '0 8 * * *'
  14. jobs:
  15. storage:
  16. # Don't run on private repo unless it is a PR.
  17. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  18. env:
  19. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  20. runs-on: macos-11
  21. strategy:
  22. matrix:
  23. pod: [Storage, StorageSwift]
  24. steps:
  25. - uses: actions/checkout@v2
  26. - name: Setup Bundler
  27. run: scripts/setup_bundler.sh
  28. - name: Install Secret GoogleService-Info.plist
  29. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/storage-db-plist.gpg \
  30. FirebaseStorage/Tests/Integration/Resources/GoogleService-Info.plist "$plist_secret"
  31. - name: Install Credentials.h
  32. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Storage/Credentials.h.gpg \
  33. FirebaseStorage/Tests/Integration/Credentials.h "$plist_secret"
  34. - name: Install Credentials.swift
  35. run: |
  36. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Storage/Credentials.swift.gpg \
  37. FirebaseStorage/Tests/SwiftIntegration/Credentials.swift "$plist_secret"
  38. cp FirebaseStorage/Tests/SwiftIntegration/Credentials.swift FirebaseStorageSwift/Tests/Integration/
  39. - name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
  40. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/build.sh ${{ matrix.pod }} all)
  41. spm:
  42. # Don't run on private repo unless it is a PR.
  43. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  44. runs-on: macos-11
  45. steps:
  46. - uses: actions/checkout@v2
  47. - name: Initialize xcodebuild
  48. run: scripts/setup_spm_tests.sh
  49. - name: iOS Unit Tests
  50. run: scripts/third_party/travis/retry.sh ./scripts/build.sh StorageUnit iOS spm
  51. - name: Swift Build
  52. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseStorageSwift-Beta iOS spmbuildonly
  53. spm-cron:
  54. # Don't run on private repo.
  55. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  56. runs-on: macos-11
  57. strategy:
  58. matrix:
  59. target: [tvOS, macOS, catalyst, watchOS]
  60. steps:
  61. - uses: actions/checkout@v2
  62. - name: Initialize xcodebuild
  63. run: scripts/setup_spm_tests.sh
  64. - name: Unit Tests
  65. run: scripts/third_party/travis/retry.sh ./scripts/build.sh StorageUnit ${{ matrix.target }} spm
  66. - name: Swift Build
  67. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseStorageSwift-Beta ${{ matrix.target }} spmbuildonly
  68. catalyst:
  69. # Don't run on private repo unless it is a PR.
  70. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  71. runs-on: macos-11
  72. steps:
  73. - uses: actions/checkout@v2
  74. - name: Setup Bundler
  75. run: scripts/setup_bundler.sh
  76. - name: Setup project and Build for Catalyst
  77. run: scripts/test_catalyst.sh FirebaseStorage test FirebaseStorage-Unit-unit
  78. quickstart:
  79. # Don't run on private repo unless it is a PR.
  80. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  81. env:
  82. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  83. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  84. runs-on: macos-11
  85. steps:
  86. - uses: actions/checkout@v2
  87. - name: Setup quickstart
  88. run: scripts/setup_quickstart.sh storage
  89. - name: Install Secret GoogleService-Info.plist
  90. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-storage.plist.gpg \
  91. quickstart-ios/storage/GoogleService-Info.plist "$plist_secret"
  92. - name: Test objc quickstart
  93. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Storage true)
  94. - name: Test swift quickstart
  95. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Storage true swift)
  96. pod-lib-lint:
  97. # Don't run on private repo unless it is a PR.
  98. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  99. runs-on: macos-11
  100. strategy:
  101. matrix:
  102. target: [ios, tvos, macos, watchos]
  103. spec: [
  104. 'FirebaseStorage.podspec --test-specs=unit', # The integration tests need more set up.
  105. 'FirebaseStorageSwift.podspec --skip-tests' # No current unit tests.
  106. ]
  107. steps:
  108. - uses: actions/checkout@v2
  109. - name: Setup Bundler
  110. run: scripts/setup_bundler.sh
  111. - name: Build and test
  112. run: |
  113. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb ${{ matrix.spec }} --platforms=${{ matrix.target }}
  114. storage-cron-only:
  115. # Don't run on private repo.
  116. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  117. runs-on: macos-11
  118. strategy:
  119. matrix:
  120. target: [ios, tvos, macos, watchos]
  121. flags: [
  122. '--use-static-frameworks --skip-tests ',
  123. '--use-libraries --skip-tests '
  124. ]
  125. needs: pod-lib-lint
  126. steps:
  127. - uses: actions/checkout@v2
  128. - name: Setup Bundler
  129. run: scripts/setup_bundler.sh
  130. - name: PodLibLint Storage Cron
  131. run: |
  132. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorage.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
  133. storageswift-cron-only:
  134. # Don't run on private repo.
  135. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  136. runs-on: macos-11
  137. strategy:
  138. matrix:
  139. target: [ios, tvos, macos, watchos]
  140. flags: [
  141. '--use-static-frameworks --skip-tests', # Swift pods do not support --use-libraries
  142. ]
  143. needs: pod-lib-lint
  144. steps:
  145. - uses: actions/checkout@v2
  146. - name: Setup Bundler
  147. run: scripts/setup_bundler.sh
  148. - name: PodLibLint Storage Cron
  149. run: |
  150. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorageSwift.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
  151. podspec-presubmit:
  152. # Don't run on private repo unless it is a PR.
  153. if: github.repository == 'Firebase/firebase-ios-sdk' && github.event.pull_request.merged != true && github.event.action != 'closed'
  154. runs-on: macos-11
  155. strategy:
  156. matrix:
  157. spec: [
  158. 'FirebaseStorage.podspec --test-specs=unit', # The integration tests need more set up.
  159. 'FirebaseStorageSwift.podspec --skip-tests' # No current unit tests.
  160. ]
  161. steps:
  162. - uses: actions/checkout@v2
  163. - name: Setup Bundler
  164. run: scripts/setup_bundler.sh
  165. - name: Build and test
  166. run: scripts/third_party/travis/retry.sh pod spec lint ${{ matrix.spec }} --sources='https://github.com/firebase/SpecsTesting','https://github.com/firebase/SpecsDev.git','https://github.com/firebase/SpecsStaging.git','https://cdn.cocoapods.org/'