core.yml 1.4 KB

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