storage.yml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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 11pm (PST) - cron uses UTC times
  13. - cron: '0 7 * * *'
  14. jobs:
  15. storage:
  16. env:
  17. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  18. runs-on: macos-latest
  19. strategy:
  20. matrix:
  21. pod: [Storage, StorageSwift]
  22. steps:
  23. - uses: actions/checkout@v2
  24. - name: Setup Bundler
  25. run: scripts/setup_bundler.sh
  26. - name: Install Secret GoogleService-Info.plist
  27. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/storage-db-plist.gpg \
  28. FirebaseStorage/Tests/Integration/Resources/GoogleService-Info.plist "$plist_secret"
  29. - name: Install Credentials.h
  30. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Storage/Credentials.h.gpg \
  31. FirebaseStorage/Tests/Integration/Credentials.h "$plist_secret"
  32. - name: Install Credentials.swift
  33. run: |
  34. scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Storage/Credentials.swift.gpg \
  35. FirebaseStorage/Tests/SwiftIntegration/Credentials.swift "$plist_secret"
  36. cp FirebaseStorage/Tests/SwiftIntegration/Credentials.swift FirebaseStorageSwift/Tests/Integration/
  37. - name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
  38. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/build.sh ${{ matrix.pod }} all)
  39. catalyst:
  40. runs-on: macOS-latest
  41. steps:
  42. - uses: actions/checkout@v2
  43. - name: Setup Bundler
  44. run: scripts/setup_bundler.sh
  45. - name: Setup project and Build for Catalyst
  46. # Only build the unit tests on Catalyst. Test stopped working when GHA moved to Xcode 11.4.1.
  47. run: scripts/test_catalyst.sh FirebaseStorage build FirebaseStorage-Unit-unit
  48. quickstart:
  49. env:
  50. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  51. signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  52. runs-on: macOS-latest
  53. steps:
  54. - uses: actions/checkout@v2
  55. - name: Setup quickstart
  56. run: scripts/setup_quickstart.sh storage
  57. - name: Install Secret GoogleService-Info.plist
  58. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-storage.plist.gpg \
  59. quickstart-ios/storage/GoogleService-Info.plist "$plist_secret"
  60. - name: Install Secret FIREGSignInInfo.h
  61. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
  62. quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
  63. - name: Test objc quickstart
  64. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Storage)
  65. - name: Test swift quickstart
  66. run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Storage swift)
  67. pod-lib-lint:
  68. runs-on: macOS-latest
  69. strategy:
  70. matrix:
  71. # watchos is disabled since pod lib lint cannot handle test Auth dep even if the dep is only
  72. # specified for the other three platforms.
  73. target: [ios, tvos, macos]
  74. steps:
  75. - uses: actions/checkout@v2
  76. - name: Setup Bundler
  77. run: scripts/setup_bundler.sh
  78. - name: Build and test
  79. run: |
  80. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorage.podspec --skip-tests --platforms=${{ matrix.target }}
  81. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorageSwift.podspec --skip-tests --platforms=${{ matrix.target }}
  82. storage-cron-only:
  83. runs-on: macos-latest
  84. if: github.event_name == 'schedule'
  85. strategy:
  86. matrix:
  87. target: [ios, tvos, macos]
  88. flags: [
  89. '--skip-tests --use-modular-headers',
  90. '--skip-tests --use-libraries'
  91. ]
  92. needs: pod-lib-lint
  93. steps:
  94. - uses: actions/checkout@v2
  95. - name: Setup Bundler
  96. run: scripts/setup_bundler.sh
  97. - name: PodLibLint Storage Cron
  98. run: |
  99. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorage.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
  100. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorage.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}