appdistribution.yml 2.7 KB

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