app_check.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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-11
  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: Configure test keychain
  21. run: scripts/configure_test_keychain.sh
  22. - name: FirebaseAppCheck
  23. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppCheck.podspec --platforms=${{ matrix.target }}
  24. catalyst:
  25. # Don't run on private repo unless it is a PR.
  26. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  27. runs-on: macos-11
  28. steps:
  29. - uses: actions/checkout@v2
  30. - name: Setup Bundler
  31. run: scripts/setup_bundler.sh
  32. - name: Setup project and Build for Catalyst
  33. run: scripts/test_catalyst.sh FirebaseAppCheck test FirebaseAppCheck-Unit-unit
  34. diagnostics:
  35. # Don't run on private repo unless it is a PR.
  36. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  37. runs-on: macos-11
  38. strategy:
  39. matrix:
  40. diagnostic: [tsan, asan, ubsan]
  41. steps:
  42. - uses: actions/checkout@v2
  43. - name: Initialize xcodebuild
  44. run: scripts/setup_spm_tests.sh
  45. - name: iOS Unit Tests
  46. run: scripts/third_party/travis/retry.sh ./scripts/build.sh AppCheckUnit iOS spm ${{ matrix.diagnostic }}
  47. - name: Upload raw logs if failed
  48. if: ${{ failure() }}
  49. uses: actions/upload-artifact@v2
  50. with:
  51. name: failure-xcodebuild-raw-logs
  52. path: xcodebuild.log
  53. app_check-cron-only:
  54. runs-on: macos-11
  55. if: github.event_name == 'schedule'
  56. strategy:
  57. matrix:
  58. flags: [
  59. '--skip-tests --use-modular-headers',
  60. '--skip-tests --use-libraries'
  61. ]
  62. needs: pod_lib_lint
  63. steps:
  64. - uses: actions/checkout@v2
  65. - name: Setup Bundler
  66. run: scripts/setup_bundler.sh
  67. - name: PodLibLint FirebaseAppCheck Cron
  68. # TODO: Remove --allow-warnings when stabilized.
  69. run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAppCheck.podspec --platforms=ios ${{ matrix.flags }}
  70. spm:
  71. # Don't run on private repo unless it is a PR.
  72. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  73. runs-on: macos-11
  74. steps:
  75. - uses: actions/checkout@v2
  76. - name: Initialize xcodebuild
  77. run: scripts/setup_spm_tests.sh
  78. - name: iOS Unit Tests
  79. run: scripts/third_party/travis/retry.sh ./scripts/build.sh AppCheckUnit iOS spm
  80. - name: iOS Swift Unit Tests
  81. run: scripts/third_party/travis/retry.sh ./scripts/build.sh AppCheckUnitSwift iOS spm
  82. spm-cron:
  83. # Don't run on private repo.
  84. if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  85. runs-on: macos-11
  86. strategy:
  87. matrix:
  88. target: [tvOS, macOS, catalyst]
  89. steps:
  90. - uses: actions/checkout@v2
  91. - name: Initialize xcodebuild
  92. run: scripts/setup_spm_tests.sh
  93. - name: Unit Tests
  94. run: scripts/third_party/travis/retry.sh ./scripts/build.sh AppCheckUnit ${{ matrix.target }} spm
  95. - name: Swift Unit Tests
  96. run: scripts/third_party/travis/retry.sh ./scripts/build.sh AppCheckUnitSwift ${{ matrix.target }} spm