core.yml 1.4 KB

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