appdistribution.yml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. - uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
  34. with:
  35. cache_key: ${{ matrix.os }}
  36. - name: Initialize xcodebuild
  37. run: scripts/setup_spm_tests.sh
  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-11
  44. steps:
  45. - uses: actions/checkout@v2
  46. - uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
  47. with:
  48. cache_key: ${{ matrix.os }}
  49. - name: Setup Bundler
  50. run: scripts/setup_bundler.sh
  51. - name: Setup project and Build for Catalyst
  52. run: scripts/test_catalyst.sh FirebaseAppDistribution test FirebaseAppDistribution-Unit-unit
  53. appdistribution-cron-only:
  54. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  55. runs-on: macos-11
  56. strategy:
  57. matrix:
  58. target: [ios]
  59. flags: [
  60. '--use-static-frameworks',
  61. '--use-libraries'
  62. ]
  63. needs: pod-lib-lint
  64. steps:
  65. - uses: actions/checkout@v2
  66. - name: Setup Bundler
  67. run: scripts/setup_bundler.sh
  68. - name: PodLibLint App Distribution Cron
  69. run: |
  70. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppDistribution.podspec \
  71. --platforms=${{ matrix.target }} ${{ matrix.flags }}