appdistribution.yml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 3am (PST) - cron uses UTC times
  10. # This is set to 3 hours after zip workflow finishes so zip testing can run after.
  11. - cron: '0 11 * * *'
  12. jobs:
  13. pod-lib-lint:
  14. # Don't run on private repo unless it is a PR.
  15. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  16. runs-on: macos-latest
  17. strategy:
  18. matrix:
  19. target: [ios]
  20. steps:
  21. - uses: actions/checkout@v2
  22. - name: Setup Bundler
  23. run: scripts/setup_bundler.sh
  24. - name: Build and test
  25. run: |
  26. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppDistribution.podspec \
  27. --platforms=${{ matrix.target }}
  28. spm:
  29. # Don't run on private repo unless it is a PR.
  30. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  31. runs-on: macOS-latest
  32. steps:
  33. - uses: actions/checkout@v2
  34. - name: Xcode 12
  35. run: sudo xcode-select -s /Applications/Xcode_12.app/Contents/Developer
  36. - name: Initialize xcodebuild
  37. run: xcodebuild -list
  38. - name: iOS Unit Tests
  39. run: scripts/third_party/travis/retry.sh ./scripts/build.sh AppDistributionUnit iOS spm
  40. catalyst:
  41. # Don't run on private repo unless it is a PR.
  42. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  43. runs-on: macOS-latest
  44. steps:
  45. - uses: actions/checkout@v2
  46. - name: Setup Bundler
  47. run: scripts/setup_bundler.sh
  48. - name: Setup project and Build for Catalyst
  49. run: scripts/test_catalyst.sh FirebaseAppDistribution test FirebaseAppDistribution-Unit-unit
  50. appdistribution-cron-only:
  51. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  52. runs-on: macos-latest
  53. strategy:
  54. matrix:
  55. target: [ios]
  56. flags: [
  57. '--use-static-frameworks',
  58. '--use-libraries'
  59. ]
  60. needs: pod-lib-lint
  61. steps:
  62. - uses: actions/checkout@v2
  63. - name: Setup Bundler
  64. run: scripts/setup_bundler.sh
  65. - name: PodLibLint App Distribution Cron
  66. run: |
  67. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppDistribution.podspec \
  68. --platforms=${{ matrix.target }} ${{ matrix.flags }}