shared-swift.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. name: shared-swift
  2. on:
  3. pull_request:
  4. paths:
  5. - 'FirebaseSharedSwift**'
  6. - 'Gemfile*'
  7. schedule:
  8. # Run every day at 3am (PST) - cron uses UTC times
  9. - cron: '0 11 * * *'
  10. jobs:
  11. pod-lib-lint:
  12. # Don't run on private repo unless it is a PR.
  13. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  14. runs-on: macos-11
  15. strategy:
  16. matrix:
  17. target: [ios, tvos, macos, watchos]
  18. steps:
  19. - uses: actions/checkout@v2
  20. - name: Setup Bundler
  21. run: scripts/setup_bundler.sh
  22. - name: Build and test
  23. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseSharedSwift.podspec --platforms=${{ matrix.target }}
  24. spm:
  25. # Don't run on private repo unless it is a PR.
  26. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  27. runs-on: macos-11
  28. strategy:
  29. matrix:
  30. target: [iOS, tvOS, macOS, catalyst, watchOS]
  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: Unit Tests
  39. run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseSharedSwiftTests ${{ matrix.target }} spm