appdistribution.yml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. concurrency:
  12. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  13. cancel-in-progress: true
  14. jobs:
  15. pod-lib-lint:
  16. # Don't run on private repo unless it is a PR.
  17. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  18. runs-on: macos-12
  19. strategy:
  20. matrix:
  21. target: [ios]
  22. steps:
  23. - uses: actions/checkout@v2
  24. - uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
  25. with:
  26. ruby-version: '2.7'
  27. - name: Setup Bundler
  28. run: scripts/setup_bundler.sh
  29. - name: Build and test
  30. run: |
  31. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppDistribution.podspec \
  32. --platforms=${{ matrix.target }}
  33. spm:
  34. # Don't run on private repo unless it is a PR.
  35. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  36. runs-on: macos-12
  37. steps:
  38. - uses: actions/checkout@v2
  39. - uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
  40. with:
  41. cache_key: ${{ matrix.os }}
  42. - name: Initialize xcodebuild
  43. run: scripts/setup_spm_tests.sh
  44. - name: iOS Unit Tests
  45. run: scripts/third_party/travis/retry.sh ./scripts/build.sh AppDistributionUnit iOS spm
  46. catalyst:
  47. # Don't run on private repo unless it is a PR.
  48. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  49. runs-on: macos-12
  50. steps:
  51. - uses: actions/checkout@v2
  52. - uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
  53. with:
  54. cache_key: ${{ matrix.os }}
  55. - uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
  56. with:
  57. ruby-version: '2.7'
  58. - name: Setup Bundler
  59. run: scripts/setup_bundler.sh
  60. - name: Setup project and Build for Catalyst
  61. run: scripts/test_catalyst.sh FirebaseAppDistribution test FirebaseAppDistribution-Unit-unit
  62. appdistribution-cron-only:
  63. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  64. runs-on: macos-12
  65. strategy:
  66. matrix:
  67. target: [ios]
  68. flags: [
  69. '--use-static-frameworks'
  70. ]
  71. needs: pod-lib-lint
  72. steps:
  73. - uses: actions/checkout@v2
  74. - uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
  75. with:
  76. ruby-version: '2.7'
  77. - name: Setup Bundler
  78. run: scripts/setup_bundler.sh
  79. - name: PodLibLint App Distribution Cron
  80. run: |
  81. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppDistribution.podspec \
  82. --platforms=${{ matrix.target }} ${{ matrix.flags }}