appdistribution.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 3am (PST) - cron uses UTC times
  10. # This is set to 3 hours after zip workflow finishes so zip testing can run after.
  11. - cron: '0 11 * * *'
  12. jobs:
  13. pod-lib-lint:
  14. # Don't run on private repo unless it is a PR.
  15. if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
  16. runs-on: macos-latest
  17. strategy:
  18. matrix:
  19. target: [ios]
  20. steps:
  21. - uses: actions/checkout@v2
  22. - name: Setup Bundler
  23. run: scripts/setup_bundler.sh
  24. - name: Build and test
  25. run: |
  26. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppDistribution.podspec \
  27. --platforms=${{ matrix.target }}
  28. appdistribution-cron-only:
  29. if: github.event_name == 'schedule' && github.repository != 'FirebasePrivate/firebase-ios-sdk'
  30. runs-on: macos-latest
  31. strategy:
  32. matrix:
  33. target: [ios]
  34. flags: [
  35. '--use-modular-headers',
  36. '--use-libraries'
  37. ]
  38. needs: pod-lib-lint
  39. steps:
  40. - uses: actions/checkout@v2
  41. - name: Setup Bundler
  42. run: scripts/setup_bundler.sh
  43. - name: PodLibLint App Distribution Cron
  44. run: |
  45. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppDistribution.podspec \
  46. --platforms=${{ matrix.target }} ${{ matrix.flags }}