performance.yml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. # TODO(Swift 6): Re-enable these tests.
  2. # # Merge the yml file to main branch for the cron job schedule to be effective.
  3. # # Reference: https://github.community/t/on-schedule-per-branch/17525
  4. # name: performance
  5. # on:
  6. # workflow_dispatch:
  7. # pull_request:
  8. # paths:
  9. # # Performance sources
  10. # - 'FirebasePerformance/**'
  11. # # Podspec
  12. # - 'FirebasePerformance.podspec'
  13. # # YML configuration file
  14. # - '.github/workflows/performance.yml'
  15. # # Rebuild on Ruby infrastructure changes
  16. # - 'Gemfile*'
  17. # schedule:
  18. # # Run every day at 11pm (PST) - cron uses UTC times
  19. # # Specified in format 'minutes hours day month dayofweek'
  20. # - cron: '0 7 * * *'
  21. # concurrency:
  22. # group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  23. # cancel-in-progress: true
  24. # jobs:
  25. # spm:
  26. # uses: ./.github/workflows/common.yml
  27. # with:
  28. # target: PerformanceUnit
  29. # platforms: iOS, tvOS
  30. # catalyst:
  31. # uses: ./.github/workflows/common_catalyst.yml
  32. # with:
  33. # product: FirebasePerformance
  34. # target:
  35. # buildonly: true
  36. # # Build and run the unit tests for Firebase performance SDK.
  37. # performance:
  38. # # Don't run on private repo unless it is a PR.
  39. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  40. # runs-on: macos-15
  41. # strategy:
  42. # matrix:
  43. # target: [iOS, tvOS]
  44. # test: [unit, proddev]
  45. # steps:
  46. # - uses: actions/checkout@v4
  47. # - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
  48. # with:
  49. # cache_key: ${{ matrix.target }}${{ matrix.test }}
  50. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  51. # - name: Xcode
  52. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  53. # - name: Setup Bundler
  54. # run: scripts/setup_bundler.sh
  55. # - name: Install xcpretty
  56. # run: gem install xcpretty
  57. # - name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
  58. # run: scripts/third_party/travis/retry.sh scripts/build.sh Performance ${{ matrix.target }} ${{ matrix.test }}
  59. # # Podspec lint check for Firebase Performance
  60. # pod-lib-lint:
  61. # # Don't run on private repo unless it is a PR.
  62. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  63. # strategy:
  64. # matrix:
  65. # target: [ios, tvos]
  66. # build-env:
  67. # - os: macos-14
  68. # xcode: Xcode_16.2
  69. # - os: macos-15
  70. # xcode: Xcode_16.3
  71. # runs-on: ${{ matrix.build-env.os }}
  72. # steps:
  73. # - uses: actions/checkout@v4
  74. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  75. # - name: Setup Bundler
  76. # run: scripts/setup_bundler.sh
  77. # - name: Xcode
  78. # run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
  79. # - name: Build
  80. # #TODO: tests are not supported with Xcode 15 because the test spec depends on the iOS 8 GDCWebServer
  81. # run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebasePerformance.podspec --skip-tests --platforms=${{ matrix.target }}
  82. # quickstart:
  83. # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
  84. # env:
  85. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  86. # signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  87. # runs-on: macos-15
  88. # steps:
  89. # - uses: actions/checkout@v4
  90. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  91. # - name: Xcode
  92. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  93. # - name: Setup quickstart
  94. # run: scripts/setup_quickstart.sh performance
  95. # - name: Install Secret GoogleService-Info.plist
  96. # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-performance.plist.gpg \
  97. # quickstart-ios/performance/GoogleService-Info.plist "$plist_secret"
  98. # - name: Test swift quickstart
  99. # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Performance true swift)
  100. # # TODO: The legacy ObjC quickstarts don't run with Xcode 15, re-able if we get these working.
  101. # # - name: Test objc quickstart
  102. # # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Performance true)
  103. # quickstart-ftl-cron-only:
  104. # if: github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule'
  105. # env:
  106. # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  107. # signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
  108. # runs-on: macos-15
  109. # steps:
  110. # - uses: actions/checkout@v4
  111. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  112. # - uses: actions/setup-python@v5
  113. # with:
  114. # python-version: '3.11'
  115. # - name: Xcode
  116. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  117. # - name: Setup quickstart
  118. # run: scripts/setup_quickstart.sh performance
  119. # - name: Install Secret GoogleService-Info.plist
  120. # run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-performance.plist.gpg \
  121. # quickstart-ios/performance/GoogleService-Info.plist "$plist_secret"
  122. # - name: Build swift quickstart
  123. # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Performance swift)
  124. # # - name: Build objc quickstart
  125. # # run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Performance)
  126. # - id: ftl_test
  127. # uses: FirebaseExtended/github-actions/firebase-test-lab@v1.4
  128. # with:
  129. # credentials_json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIALS }}
  130. # testapp_dir: quickstart-ios/build-for-testing
  131. # test_type: "xctest"
  132. # performance-cron-only:
  133. # # Don't run on private repo.
  134. # if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
  135. # runs-on: macos-15
  136. # strategy:
  137. # matrix:
  138. # target: [ios, tvos]
  139. # flags: [
  140. # '--skip-tests --use-static-frameworks'
  141. # ]
  142. # needs: pod-lib-lint
  143. # steps:
  144. # - uses: actions/checkout@v4
  145. # - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
  146. # - name: Xcode
  147. # run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
  148. # - name: Setup Bundler
  149. # run: scripts/setup_bundler.sh
  150. # - name: PodLibLint Performance Cron
  151. # run: |
  152. # scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebasePerformance.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}