core.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. name: core
  2. on:
  3. pull_request:
  4. paths:
  5. - 'FirebaseCore**'
  6. - 'Interop/CoreDiagnostics/Public/*.h'
  7. - '.github/workflows/core.yml'
  8. - 'Gemfile'
  9. schedule:
  10. # Run every day at 11pm (PST) - cron uses UTC times
  11. - cron: '0 7 * * *'
  12. jobs:
  13. pod-lib-lint:
  14. runs-on: macOS-latest
  15. strategy:
  16. matrix:
  17. target: [ios, tvos, macos]
  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 FirebaseCore.podspec --platforms=${{ matrix.target }}
  24. catalyst:
  25. runs-on: macOS-latest
  26. steps:
  27. - uses: actions/checkout@v2
  28. - name: Setup Bundler
  29. run: scripts/setup_bundler.sh
  30. - name: Setup project and Build Catalyst
  31. run: scripts/test_catalyst.sh FirebaseCore build
  32. core-cron-only:
  33. runs-on: macos-latest
  34. if: github.event_name == 'schedule'
  35. strategy:
  36. matrix:
  37. target: [ios, tvos, macos]
  38. flags: [
  39. '--use-modular-headers',
  40. # Tests are skipped since the Swift tests need modules.
  41. '--skip-tests --use-libraries'
  42. ]
  43. needs: pod-lib-lint
  44. steps:
  45. - uses: actions/checkout@v2
  46. - name: Setup Bundler
  47. run: scripts/setup_bundler.sh
  48. - name: PodLibLint Core Cron
  49. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCore.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}