core-diagnostics.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. name: core-diagnostics
  2. on:
  3. pull_request:
  4. paths:
  5. - 'Firebase/CoreDiagnostics/**'
  6. - 'Example/CoreDiagnostics/**'
  7. - 'Interop/CoreDiagnostics/Public/*.h'
  8. - '.github/workflows/core-diagnostics.yml'
  9. - 'Gemfile'
  10. schedule:
  11. # Run every day at 8pm (PST) - cron uses UTC times
  12. - cron: '0 4 * * *'
  13. jobs:
  14. pod-lib-lint:
  15. # Don't run on private repo unless it is a PR.
  16. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  17. runs-on: macOS-latest
  18. strategy:
  19. matrix:
  20. target: [ios, tvos, macos]
  21. steps:
  22. - uses: actions/checkout@v2
  23. - name: Setup Bundler
  24. run: scripts/setup_bundler.sh
  25. - name: Build and test
  26. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreDiagnostics.podspec --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-latest
  31. steps:
  32. - uses: actions/checkout@v2
  33. - name: Xcode 12
  34. run: sudo xcode-select -s /Applications/Xcode_12.app/Contents/Developer
  35. - name: Initialize xcodebuild
  36. run: xcodebuild -list
  37. - name: iOS Unit Tests
  38. run: scripts/third_party/travis/retry.sh ./scripts/build.sh CoreUnit iOS spm
  39. catalyst:
  40. # Don't run on private repo unless it is a PR.
  41. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  42. runs-on: macOS-latest
  43. steps:
  44. - uses: actions/checkout@v2
  45. - name: Setup Bundler
  46. run: scripts/setup_bundler.sh
  47. - name: Setup project and Build Catalyst
  48. run: scripts/test_catalyst.sh FirebaseCoreDiagnostics test FirebaseCoreDiagnostics-Unit-unit
  49. corediagnostics-cron-only:
  50. # Don't run on private repo.
  51. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  52. runs-on: macos-latest
  53. strategy:
  54. matrix:
  55. target: [ios, tvos, macos]
  56. flags: [
  57. '--use-static-frameworks',
  58. '--use-libraries'
  59. ]
  60. needs: pod-lib-lint
  61. steps:
  62. - uses: actions/checkout@v2
  63. - name: Setup Bundler
  64. run: scripts/setup_bundler.sh
  65. - name: PodLibLint CoreDiagnostics Cron
  66. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCoreDiagnostics.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}