storage.yml 4.2 KB

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