[CI]Parallelize LLC tests #2586
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Smoke Checks | |
on: | |
pull_request: | |
branches: | |
- '**' | |
paths-ignore: | |
- 'README.md' | |
- 'CHANGELOG.md' | |
workflow_dispatch: | |
inputs: | |
swiftui_snapshots: | |
description: 'Should SwiftUI Snapshots be recorded on CI?' | |
type: boolean | |
required: false | |
default: false | |
uikit_snapshots: | |
description: 'Should UIKit Snapshots be recorded on CI?' | |
type: boolean | |
required: false | |
default: false | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
HOMEBREW_NO_INSTALL_CLEANUP: 1 # Disable cleanup for homebrew, we don't need it on CI | |
IOS_SIMULATOR_DEVICE: "iPhone 15 Pro (17.2)" | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_PR_NUM: ${{ github.event.pull_request.number }} | |
STREAM_VIDEO_SECRET: ${{ secrets.STREAM_VIDEO_SECRET }} | |
XCODE_VERSION: "15.2" | |
jobs: | |
test-sdks: | |
name: Test SDKs | |
runs-on: macos-14 | |
if: ${{ github.event.inputs.swiftui_snapshots != 'true' && github.event.inputs.uikit_snapshots != 'true' }} | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Bootstrap | |
uses: ./.github/actions/bootstrap | |
env: | |
INSTALL_YEETD: true | |
SKIP_MINT_BOOTSTRAP: true | |
- name: Run SDK Tests | |
run: bundle exec fastlane test_unified device:"${{ env.IOS_SIMULATOR_DEVICE }}" | |
- name: Run Sonar analysis | |
run: bundle exec fastlane sonar_upload | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
- name: Handle failures | |
uses: ./.github/actions/failure-handling | |
with: | |
xcresult-basenames: '["StreamVideo", "StreamVideoSwiftUI", "StreamVideoUIKit"]' | |
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }} |