appdistribution.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. name: appdistribution
  2. on:
  3. pull_request:
  4. paths:
  5. - 'FirebaseAppDistribution**'
  6. - '.github/workflows/appdistribution.yml'
  7. - 'Gemfile*'
  8. schedule:
  9. # Run every day at 1am (PST) - cron uses UTC times
  10. - cron: '0 9 * * *'
  11. jobs:
  12. pod-lib-lint:
  13. # Don't run on private repo unless it is a PR.
  14. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  15. runs-on: macos-11
  16. strategy:
  17. matrix:
  18. target: [ios]
  19. steps:
  20. - uses: actions/checkout@v2
  21. - name: Setup Bundler
  22. run: scripts/setup_bundler.sh
  23. - name: Build and test
  24. run: |
  25. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppDistribution.podspec \
  26. --platforms=${{ matrix.target }}
  27. spm:
  28. # Don't run on private repo unless it is a PR.
  29. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  30. runs-on: macos-11
  31. steps:
  32. - uses: actions/checkout@v2
  33. - name: Initialize xcodebuild
  34. run: scripts/setup_spm_tests.sh
  35. - name: iOS Unit Tests
  36. run: scripts/third_party/travis/retry.sh ./scripts/build.sh AppDistributionUnit iOS spm
  37. catalyst:
  38. # Don't run on private repo unless it is a PR.
  39. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  40. runs-on: macos-11
  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. run: scripts/test_catalyst.sh FirebaseAppDistribution test FirebaseAppDistribution-Unit-unit
  47. appdistribution-cron-only:
  48. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  49. runs-on: macos-11
  50. strategy:
  51. matrix:
  52. target: [ios]
  53. flags: [
  54. '--use-static-frameworks',
  55. '--use-libraries'
  56. ]
  57. needs: pod-lib-lint
  58. steps:
  59. - uses: actions/checkout@v2
  60. - name: Setup Bundler
  61. run: scripts/setup_bundler.sh
  62. - name: PodLibLint App Distribution Cron
  63. run: |
  64. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppDistribution.podspec \
  65. --platforms=${{ matrix.target }} ${{ matrix.flags }}