app_check.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. name: app_check
  2. on:
  3. pull_request:
  4. paths:
  5. - 'FirebaseAppCheck**'
  6. - '.github/workflows/app_check.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: FirebaseAppCheck
  21. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppCheck.podspec --platforms=${{ matrix.target }}
  22. diagnostics:
  23. # Don't run on private repo unless it is a PR.
  24. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  25. runs-on: macOS-latest
  26. strategy:
  27. matrix:
  28. diagnostic: [tsan, asan, ubsan]
  29. steps:
  30. - uses: actions/checkout@v2
  31. - name: Initialize xcodebuild
  32. run: xcodebuild -list
  33. - name: iOS Unit Tests
  34. run: scripts/third_party/travis/retry.sh ./scripts/build.sh AppCheckUnit iOS spm ${{ matrix.diagnostic }}
  35. - name: Upload raw logs if failed
  36. if: ${{ failure() }}
  37. uses: actions/upload-artifact@v2
  38. with:
  39. name: failure-xcodebuild-raw-logs
  40. path: xcodebuild.log
  41. app_check-cron-only:
  42. runs-on: macos-latest
  43. if: github.event_name == 'schedule'
  44. strategy:
  45. matrix:
  46. flags: [
  47. '--skip-tests --use-modular-headers',
  48. '--skip-tests --use-libraries'
  49. ]
  50. needs: pod_lib_lint
  51. steps:
  52. - uses: actions/checkout@v2
  53. - name: Setup Bundler
  54. run: scripts/setup_bundler.sh
  55. - name: PodLibLint FirebaseAppCheck Cron
  56. # TODO: Remove --allow-warnings when stabilized.
  57. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppCheck.podspec --platforms=ios ${{ matrix.flags }}