abtesting.yml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. name: abtesting
  2. permissions:
  3. contents: read
  4. on:
  5. workflow_dispatch:
  6. pull_request:
  7. paths:
  8. - 'FirebaseABTesting**'
  9. - 'Interop/Analytics/Public/*.h'
  10. - '.github/workflows/abtesting.yml'
  11. - '.github/workflows/common.yml'
  12. - '.github/workflows/common_cocoapods.yml'
  13. - '.github/workflows/common_catalyst.yml'
  14. - '.github/workflows/common_quickstart.yml'
  15. - 'Gemfile*'
  16. schedule:
  17. # Run every day at 2am (PDT) / 5am (EDT) - cron uses UTC times
  18. - cron: '0 9 * * *'
  19. concurrency:
  20. group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  21. cancel-in-progress: true
  22. jobs:
  23. # spm:
  24. # uses: ./.github/workflows/common.yml
  25. # with:
  26. # target: ABTestingUnit
  27. #
  28. # catalyst:
  29. # uses: ./.github/workflows/common_catalyst.yml
  30. # with:
  31. # product: FirebaseABTesting
  32. # target: FirebaseABTesting-Unit-unit
  33. #
  34. # pod_lib_lint:
  35. # uses: ./.github/workflows/common_cocoapods.yml
  36. # with:
  37. # product: FirebaseABTesting
  38. # quickstart:
  39. # uses: ./.github/workflows/common_quickstart.yml
  40. # with:
  41. # product: ABTesting
  42. # is_legacy: true
  43. # setup_command: scripts/setup_quickstart.sh ABTesting
  44. # plist_src_path: scripts/gha-encrypted/qs-database.plist.gpg
  45. # plist_dst_path: quickstart-ios/database/GoogleService-Info.plist
  46. # secrets:
  47. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  48. quickstart-ftl-cron-only:
  49. # Don't run on private repo.
  50. if: github.repository == 'Firebase/firebase-ios-sdk' # && github.event_name == 'schedule'
  51. env:
  52. plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  53. runs-on: macos-15
  54. steps:
  55. - uses: actions/checkout@v4
  56. - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  57. - uses: actions/setup-python@v5
  58. with:
  59. python-version: '3.11'
  60. - name: Setup quickstart
  61. env:
  62. LEGACY: true
  63. run: scripts/setup_quickstart.sh abtesting
  64. - name: Install Secret GoogleService-Info.plist
  65. run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-ABTeStInG.plist.gpg \
  66. quickstart-ios/abTESTING/GoogleService-Info.plist "$plist_secret"
  67. - name: Xcode
  68. run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
  69. - name: Build swift quickstart
  70. env:
  71. LEGACY: true
  72. run: |
  73. scripts/test_quickstart.sh \
  74. ABTesting \
  75. false \
  76. objc
  77. # - id: ftl_test
  78. # uses: FirebaseExtended/github-actions/firebase-test-lab@v1.4
  79. # with:
  80. # credentials_json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIALS }}
  81. # testapp_dir: quickstart-ios/build-for-testing
  82. # test_type: "xctest"
  83. - name: Remove data before upload
  84. run: |
  85. ls quickstart-ios/ABTesting/GoogleService-Info.plist
  86. scripts/remove_data.sh ABTesTING
  87. ls quickstart-ios/ABTesting/GoogleService-Info.plist
  88. #
  89. # abtesting-cron-only:
  90. # # Don't run on private repo.
  91. # if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  92. #
  93. # runs-on: macos-15
  94. # strategy:
  95. # matrix:
  96. # target: [ios, tvos, macos]
  97. # flags: [
  98. # '--use-static-frameworks'
  99. # ]
  100. # needs: pod_lib_lint
  101. # steps:
  102. # - uses: actions/checkout@v4
  103. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  104. # - name: Setup Bundler
  105. # run: scripts/setup_bundler.sh
  106. # - name: Xcode
  107. # run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
  108. # - name: PodLibLint ABTesting Cron
  109. # run: |
  110. # scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb \
  111. # FirebaseABTesting.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}