appdistribution.yml 2.4 KB

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