Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ipavlidakis committed Jan 15, 2025
1 parent e73fc95 commit 29116a1
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 38 deletions.
84 changes: 48 additions & 36 deletions .github/workflows/smoke-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ jobs:
xcresult-basenames: '["StreamVideo", "StreamVideoSwiftUI", "StreamVideoUIKit"]'
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}

build-test-app-and-frameworks:
name: Build Test App and Frameworks
build-demo-apps:
name: Build Demo Apps
runs-on: macos-15
needs: test-sdks
if: ${{ github.event_name != 'push' && github.event.inputs.swiftui_snapshots != 'true' && github.event.inputs.uikit_snapshots != 'true' }}
Expand All @@ -83,37 +83,19 @@ jobs:
SKIP_MINT_BOOTSTRAP: true
SKIP_BREW_BOOTSTRAP: true

- name: Build
run: bundle exec fastlane build_test_app_and_frameworks
- name: Build SwiftUI Demo
run: bundle exec fastlane build_swiftui_demo

build-apps:
name: Build Demo Apps
runs-on: macos-14
needs: build-test-app-and-frameworks
if: ${{ github.event_name != 'push' && github.event.inputs.swiftui_snapshots != 'true' && github.event.inputs.uikit_snapshots != 'true' }}
steps:
- name: Checkout
uses: actions/[email protected]

- name: Bootstrap
uses: ./.github/actions/bootstrap
with:
parent: build-test-app-and-frameworks
env:
INSTALL_YEETD: true
SKIP_MINT_BOOTSTRAP: true
SKIP_BREW_BOOTSTRAP: true

- name: Build UIKit Demo App
- name: Build UIKit Demo
run: bundle exec fastlane build_uikit_demo

- name: Build Docs Test Project
- name: Build Documentation
run: bundle exec fastlane build_docs_test

allure-testops-launch:
name: Launch Allure TestOps
runs-on: macos-13
needs: build-test-app-and-frameworks
runs-on: macos-15
needs: build-demo-apps
if: ${{ github.event_name != 'push' && github.event.inputs.swiftui_snapshots != 'true' && github.event.inputs.uikit_snapshots != 'true' }}
outputs:
launch_id: ${{ steps.get_launch_id.outputs.launch_id }}
Expand All @@ -124,7 +106,7 @@ jobs:
- name: Bootstrap
uses: ./.github/actions/ruby-cache
with:
parent: build-test-app-and-frameworks
parent: build-demo-apps

- name: Launch Allure TestOps
run: bundle exec fastlane allure_launch
Expand Down Expand Up @@ -156,7 +138,7 @@ jobs:
- name: Bootstrap
uses: ./.github/actions/bootstrap
with:
parent: build-test-app-and-frameworks
parent: build-demo-apps
env:
INSTALL_ALLURE: true
INSTALL_VIDEO_BUDDY: true
Expand Down Expand Up @@ -203,7 +185,7 @@ jobs:
automated-code-review:
name: Automated Code Review
runs-on: macos-13
runs-on: macos-15
needs: test-e2e-debug
env:
XCODE_VERSION: "15.0.1"
Expand Down Expand Up @@ -255,9 +237,39 @@ jobs:
- name: Build SDK Tests
run: bundle exec fastlane test_unified device:"${{ env.IOS_SIMULATOR_DEVICE }}" skip_testing:true build_for_testing:true

build-demo-apps-xcode-15:
name: Build Demo Apps in Xcode 15
runs-on: macos-13
needs: test-sdks-xcode-15
env:
XCODE_VERSION: "15.0.1"
if: ${{ github.event_name != 'push' && 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
with:
parent: test-sdks-xcode-15
env:
INSTALL_YEETD: true
SKIP_MINT_BOOTSTRAP: true
SKIP_BREW_BOOTSTRAP: true

- name: Build SwiftUI Demo
run: bundle exec fastlane build_swiftui_demo

- name: Build UIKit Demo
run: bundle exec fastlane build_uikit_demo

- name: Build Documentation
run: bundle exec fastlane build_docs_test

build-xcode15-xcframework-stream-video:
name: Build StreamVideo XCframeworks (Xcode 15.0)
needs: test-sdks-xcode-15
needs: build-demo-apps-xcode-15
runs-on: macos-13
env:
XCODE_VERSION: "15.0.1"
Expand All @@ -274,7 +286,7 @@ jobs:
- name: Bootstrap
uses: ./.github/actions/bootstrap
with:
parent: test-sdks-xcode-15
parent: build-demo-apps-xcode-15
env:
INSTALL_YEETD: true
SKIP_MINT_BOOTSTRAP: true
Expand All @@ -285,7 +297,7 @@ jobs:

build-xcode15-xcframework-stream-video-swiftui:
name: Build StreamVideoSwiftUI XCframeworks (Xcode 15.0)
needs: test-sdks-xcode-15
needs: build-demo-apps-xcode-15
runs-on: macos-13
env:
XCODE_VERSION: "15.0.1"
Expand All @@ -302,7 +314,7 @@ jobs:
- name: Bootstrap
uses: ./.github/actions/bootstrap
with:
parent: test-sdks-xcode-15
parent: build-demo-apps-xcode-15
env:
INSTALL_YEETD: true
SKIP_MINT_BOOTSTRAP: true
Expand All @@ -313,7 +325,7 @@ jobs:

build-xcode15-xcframework-stream-video-uikit:
name: Build StreamVideoUIKit XCframeworks (Xcode 15.0)
needs: test-sdks-xcode-15
needs: build-demo-apps-xcode-15
runs-on: macos-13
env:
XCODE_VERSION: "15.0.1"
Expand All @@ -330,12 +342,12 @@ jobs:
- name: Bootstrap
uses: ./.github/actions/bootstrap
with:
parent: test-sdks-xcode-15
parent: build-demo-apps-xcode-15
env:
INSTALL_YEETD: true
SKIP_MINT_BOOTSTRAP: true
SKIP_BREW_BOOTSTRAP: true

- name: Build StreamVideoUIKit XCFramework
run: bundle exec fastlane build_xcframeworks_concurrent scheme:"StreamVideoUIKit"


5 changes: 3 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ lane :test_unified do |options|

# Ensure `skip_testing` defaults to false
skip_testing = options.fetch(:skip_testing, false)
build_for_testing = options.fetch(:build_for_testing, false)

scan_options = {
project: xcode_project,
Expand All @@ -240,7 +241,8 @@ lane :test_unified do |options|
parallel_testing: true,
concurrent_workers: 4,
prelaunch_simulator: true,
skip_testing: options[:skip_testing]
skip_testing: skip_testing,
build_for_testing: options[:build_for_testing]
}

# Add `testplan` only if `skip_testing` is not true
Expand Down Expand Up @@ -561,7 +563,6 @@ private_lane :build_example_app do |options|
clean: is_localhost,
configuration: 'Debug',
derived_data_path: derived_data_path,
# derived_data_path: options[:derived_data_path],
cloned_source_packages_path: source_packages_path,
build_for_testing: true
)
Expand Down

0 comments on commit 29116a1

Please sign in to comment.