sessions.yml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. name: sessions
  2. on:
  3. pull_request:
  4. paths:
  5. - 'FirebaseSessions**'
  6. - 'FirebaseSessions.podspec'
  7. - '.github/workflows/sessions.yml'
  8. - 'Gemfile*'
  9. schedule:
  10. # Run every day at 9am (PST) - cron uses UTC times
  11. - cron: '0 1 * * *'
  12. concurrency:
  13. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  14. cancel-in-progress: true
  15. jobs:
  16. pod-lib-lint:
  17. # Don't run on private repo unless it is a PR.
  18. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  19. runs-on: macos-12
  20. strategy:
  21. matrix:
  22. target: [ios, tvos, macos]
  23. steps:
  24. - uses: actions/checkout@v3
  25. - uses: ruby/setup-ruby@v1
  26. - name: Setup Bundler
  27. run: scripts/setup_bundler.sh
  28. - name: Build and test
  29. run: |
  30. scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseSessions.podspec --platforms=${{ matrix.target }}
  31. #
  32. # Uncomment below when Swift Package Manager is implemented
  33. #
  34. # spm:
  35. # # Don't run on private repo unless it is a PR.
  36. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  37. # runs-on: macos-12
  38. # strategy:
  39. # matrix:
  40. # target: [iOS, tvOS, macOS, catalyst, watchOS]
  41. # steps:
  42. # - uses: actions/checkout@v3
  43. # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  44. # with:
  45. # cache_key: ${{ matrix.os }}
  46. # - name: Initialize xcodebuild
  47. # run: scripts/setup_spm_tests.sh
  48. # - name: Unit Tests
  49. # run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseSessions ${{ matrix.target }} spmbuildonly
  50. catalyst:
  51. # Don't run on private repo unless it is a PR.
  52. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  53. runs-on: macos-12
  54. steps:
  55. - uses: actions/checkout@v3
  56. - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  57. with:
  58. cache_key: ${{ matrix.os }}
  59. - uses: ruby/setup-ruby@v1
  60. - name: Setup Bundler
  61. run: scripts/setup_bundler.sh
  62. - name: Setup project and Build for Catalyst
  63. run: scripts/test_catalyst.sh FirebaseSessions test FirebaseSessions-Unit-unit