installations.yml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. # TODO(Swift 6): Re-enable these tests.
  2. # name: installations
  3. # on:
  4. # workflow_dispatch:
  5. # pull_request:
  6. # paths:
  7. # - 'FirebaseInstallations**'
  8. # - '.github/workflows/installations.yml'
  9. # - 'Gemfile*'
  10. # schedule:
  11. # # Run every day at 10pm (PST) - cron uses UTC times
  12. # - cron: '0 6 * * *'
  13. # concurrency:
  14. # group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  15. # cancel-in-progress: true
  16. # jobs:
  17. # spm:
  18. # uses: ./.github/workflows/common.yml
  19. # with:
  20. # target: FirebaseInstallations
  21. # buildonly_platforms: all
  22. # catalyst:
  23. # uses: ./.github/workflows/common_catalyst.yml
  24. # with:
  25. # product: FirebaseInstallations
  26. # target: FirebaseInstallations-Unit-unit
  27. # pod-lib-lint:
  28. # # Don't run on private repo unless it is a PR.
  29. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  30. # env:
  31. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  32. # strategy:
  33. # matrix:
  34. # # TODO: macos tests are blocked by https://github.com/erikdoe/ocmock/pull/532
  35. # target: [ios, tvos, macos --skip-tests, watchos]
  36. # build-env:
  37. # - os: macos-14
  38. # xcode: Xcode_16.2
  39. # test-specs: unit,integration
  40. # - os: macos-15
  41. # xcode: Xcode_16.3
  42. # test-specs: unit
  43. # runs-on: ${{ matrix.build-env.os }}
  44. # steps:
  45. # - uses: actions/checkout@v4
  46. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  47. # - name: Setup Bundler
  48. # run: scripts/setup_bundler.sh
  49. # - name: Configure test keychain
  50. # run: scripts/configure_test_keychain.sh
  51. # - name: Install GoogleService-Info.plist
  52. # run: |
  53. # mkdir -p FirebaseInstallations/Source/Tests/Resources
  54. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Installations/GoogleService-Info.plist.gpg \
  55. # FirebaseInstallations/Source/Tests/Resources/GoogleService-Info.plist "$plist_secret"
  56. # - name: Get boolean for secrets available
  57. # id: secrets
  58. # run: echo "::set-output name=val::$([[ -z $plist_secret ]] && echo "0" || echo "1")"
  59. # - name: Xcode
  60. # run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
  61. # - name: Build and test
  62. # run: |
  63. # export FIS_INTEGRATION_TESTS_REQUIRED=${{ steps.secrets.outputs.val }}
  64. # scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseInstallations.podspec \
  65. # --platforms=${{ matrix.target }} --test-specs=${{ matrix.build-env.test-specs }}
  66. # quickstart:
  67. # # Don't run on private repo unless it is a PR.
  68. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  69. # runs-on: macos-15
  70. # steps:
  71. # - uses: actions/checkout@v4
  72. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  73. # - name: Xcode
  74. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  75. # - name: Setup quickstart
  76. # run: scripts/setup_quickstart.sh installations
  77. # - name: Copy mock plist
  78. # run: cp quickstart-ios/mock-GoogleService-Info.plist quickstart-ios/installations/GoogleService-Info.plist
  79. # - name: Test objc quickstart
  80. # run: scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Installations true
  81. # - name: Test swift quickstart
  82. # run: scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Installations true swift
  83. # quickstart-ftl-cron-only:
  84. # # Don't run on private repo.
  85. # if: github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule'
  86. # runs-on: macos-15
  87. # steps:
  88. # - uses: actions/checkout@v4
  89. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  90. # - uses: actions/setup-python@v5
  91. # with:
  92. # python-version: '3.11'
  93. # - name: Xcode
  94. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  95. # - name: Setup quickstart
  96. # run: scripts/setup_quickstart.sh installations
  97. # - name: Copy mock plist
  98. # run: cp quickstart-ios/mock-GoogleService-Info.plist quickstart-ios/installations/GoogleService-Info.plist
  99. # - name: Build objc quickstart
  100. # run: scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Installations
  101. # - name: Build swift quickstart
  102. # run: scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Installations swift
  103. # - id: ftl_test
  104. # uses: FirebaseExtended/github-actions/firebase-test-lab@v1.4
  105. # with:
  106. # credentials_json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIALS }}
  107. # testapp_dir: quickstart-ios/build-for-testing
  108. # test_type: "xctest"
  109. # installations-cron-only:
  110. # if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  111. # runs-on: macos-15
  112. # env:
  113. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  114. # FIR_IID_INTEGRATION_TESTS_REQUIRED: ${{ secrets.GHASecretsGPGPassphrase1 }}
  115. # strategy:
  116. # matrix:
  117. # target: [ios, tvos, macos]
  118. # flags: [
  119. # '--use-static-frameworks'
  120. # ]
  121. # needs: pod-lib-lint
  122. # steps:
  123. # - uses: actions/checkout@v4
  124. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  125. # - name: Xcode
  126. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  127. # - name: Setup Bundler
  128. # run: scripts/setup_bundler.sh
  129. # - name: Configure test keychain
  130. # run: scripts/configure_test_keychain.sh
  131. # - name: Install GoogleService-Info.plist
  132. # run: |
  133. # mkdir -p FirebaseInstallations/Source/Tests/Resources
  134. # scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Installations/GoogleService-Info.plist.gpg \
  135. # FirebaseInstallations/Source/Tests/Resources/GoogleService-Info.plist "$plist_secret"
  136. # - name: Get boolean for secrets available
  137. # id: secrets
  138. # run: echo "::set-output name=val::$([[ -z $plist_secret ]] && echo "0" || echo "1")"
  139. # - name: PodLibLint Installations Cron
  140. # run: |
  141. # export FIS_INTEGRATION_TESTS_REQUIRED=${{ steps.secrets.outputs.val }}
  142. # scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseInstallations.podspec \
  143. # --platforms=${{ matrix.target }} ${{ matrix.flags }} \