appdistribution.yml 2.7 KB

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