storage.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. name: storage
  2. on:
  3. pull_request:
  4. paths:
  5. - 'FirebaseStorage**'
  6. - '.github/workflows/storage.yml'
  7. schedule:
  8. # Run every day at 11pm (PST) - cron uses UTC times
  9. - cron: '0 7 * * *'
  10. jobs:
  11. storage:
  12. runs-on: macos-latest
  13. steps:
  14. - uses: actions/checkout@v1
  15. - name: Setup Bundler
  16. run: scripts/setup_bundler.sh
  17. - name: Install Secret GoogleService-Info.plist
  18. env:
  19. plist_secret: ${{ secrets.StoragePlistSecret }}
  20. run: ./scripts/decrypt_gha_secret.sh scripts/gha-encrypted/storage-db-plist.gpg \
  21. FirebaseStorage/Tests/Integration/Resources/GoogleService-Info.plist "$plist_secret"
  22. - name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
  23. run: scripts/third_party/travis/retry.sh scripts/build.sh Storage all
  24. pod_lib_lint:
  25. runs-on: macOS-latest
  26. strategy:
  27. matrix:
  28. target: [ios, tvos, macos]
  29. steps:
  30. - uses: actions/checkout@v2
  31. - name: Setup Bundler
  32. run: scripts/setup_bundler.sh
  33. - name: Build and test
  34. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorage.podspec --skip-tests --platforms=${{ matrix.target }}
  35. storage-cron-only:
  36. runs-on: macos-latest
  37. if: github.event_name == 'schedule'
  38. strategy:
  39. matrix:
  40. target: [ios, tvos, macos]
  41. flags: [
  42. '--skip-tests --use-modular-headers',
  43. '--skip-tests --use-libraries'
  44. ]
  45. needs: pod_lib_lint
  46. steps:
  47. - uses: actions/checkout@v2
  48. - name: Setup Bundler
  49. run: scripts/setup_bundler.sh
  50. - name: PodLibLint Storage Cron
  51. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseStorage.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}