app_check.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. catalyst:
  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. steps:
  27. - uses: actions/checkout@v2
  28. - name: Setup Bundler
  29. run: scripts/setup_bundler.sh
  30. - name: Setup project and Build for Catalyst
  31. run: scripts/test_catalyst.sh FirebaseAppCheck test FirebaseAppCheck-Unit-unit
  32. diagnostics:
  33. # Don't run on private repo unless it is a PR.
  34. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  35. runs-on: macOS-latest
  36. strategy:
  37. matrix:
  38. diagnostic: [tsan, asan, ubsan]
  39. steps:
  40. - uses: actions/checkout@v2
  41. - name: Initialize xcodebuild
  42. run: scripts/setup_spm_tests.sh
  43. - name: iOS Unit Tests
  44. run: scripts/third_party/travis/retry.sh ./scripts/build.sh AppCheckUnit iOS spm ${{ matrix.diagnostic }}
  45. - name: Upload raw logs if failed
  46. if: ${{ failure() }}
  47. uses: actions/upload-artifact@v2
  48. with:
  49. name: failure-xcodebuild-raw-logs
  50. path: xcodebuild.log
  51. app_check-cron-only:
  52. runs-on: macos-latest
  53. if: github.event_name == 'schedule'
  54. strategy:
  55. matrix:
  56. flags: [
  57. '--skip-tests --use-modular-headers',
  58. '--skip-tests --use-libraries'
  59. ]
  60. needs: pod_lib_lint
  61. steps:
  62. - uses: actions/checkout@v2
  63. - name: Setup Bundler
  64. run: scripts/setup_bundler.sh
  65. - name: PodLibLint FirebaseAppCheck Cron
  66. # TODO: Remove --allow-warnings when stabilized.
  67. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppCheck.podspec --platforms=ios ${{ matrix.flags }}