Skip to content

Commit

Permalink
Add unified tests scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
ipavlidakis committed Nov 20, 2024
1 parent d9a3c8f commit 4e36f3a
Show file tree
Hide file tree
Showing 5 changed files with 450 additions and 86 deletions.
132 changes: 66 additions & 66 deletions .github/workflows/smoke-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
INSTALL_YEETD: true
SKIP_MINT_BOOTSTRAP: true
- name: Run LLC Tests (Debug)
run: bundle exec fastlane test device:"${{ env.IOS_SIMULATOR_DEVICE }}"
run: bundle exec fastlane test_unified device:"${{ env.IOS_SIMULATOR_DEVICE }}"
timeout-minutes: 40
env:
XCODE_VERSION: "15.2" # the most stable pair of Xcode
Expand Down Expand Up @@ -85,71 +85,71 @@ jobs:
fastlane/test_output/logs/*/Diagnostics/**/*.txt
fastlane/test_output/logs/*/Diagnostics/simctl_diagnostics/DiagnosticReports/*
test-swiftui-debug:
name: Test SwiftUI (Debug)
runs-on: macos-14
needs: test-llc-debug
if: ${{ github.event_name != 'push' && github.event.inputs.swiftui_snapshots != 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.CI_BOT_GITHUB_TOKEN }} # to open a PR
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/bootstrap
env:
INSTALL_YEETD: true
SKIP_MINT_BOOTSTRAP: true
SKIP_BREW_BOOTSTRAP: true
- name: Run UI Tests (Debug)
run: bundle exec fastlane test_swiftui device:"${{ env.IOS_SIMULATOR_DEVICE }}" record:${{ github.event.inputs.swiftui_snapshots }}
timeout-minutes: 40
env:
XCODE_VERSION: "15.2" # the most stable pair of Xcode
IOS_SIMULATOR_DEVICE: "iPhone 15 Pro (17.2)" # and iOS
- name: Parse xcresult
if: failure()
run: |
brew install chargepoint/xcparse/xcparse
xcparse screenshots fastlane/test_output/StreamVideoSwiftUI.xcresult fastlane/test_output/snapshots --test
- uses: actions/upload-artifact@v4
if: failure()
with:
name: SwiftUI Test Data
path: |
~/Library/Logs/scan
fastlane/test_output/snapshots
# test-swiftui-debug:
# name: Test SwiftUI (Debug)
# runs-on: macos-14
# needs: test-llc-debug
# if: ${{ github.event_name != 'push' && github.event.inputs.swiftui_snapshots != 'false' }}
# env:
# GITHUB_TOKEN: ${{ secrets.CI_BOT_GITHUB_TOKEN }} # to open a PR
# steps:
# - uses: actions/[email protected]
# - uses: ./.github/actions/bootstrap
# env:
# INSTALL_YEETD: true
# SKIP_MINT_BOOTSTRAP: true
# SKIP_BREW_BOOTSTRAP: true
# - name: Run UI Tests (Debug)
# run: bundle exec fastlane test_swiftui device:"${{ env.IOS_SIMULATOR_DEVICE }}" record:${{ github.event.inputs.swiftui_snapshots }}
# timeout-minutes: 40
# env:
# XCODE_VERSION: "15.2" # the most stable pair of Xcode
# IOS_SIMULATOR_DEVICE: "iPhone 15 Pro (17.2)" # and iOS
# - name: Parse xcresult
# if: failure()
# run: |
# brew install chargepoint/xcparse/xcparse
# xcparse screenshots fastlane/test_output/StreamVideoSwiftUI.xcresult fastlane/test_output/snapshots --test
# - uses: actions/upload-artifact@v4
# if: failure()
# with:
# name: SwiftUI Test Data
# path: |
# ~/Library/Logs/scan
# fastlane/test_output/snapshots

test-uikit-debug:
name: Test UIKit (Debug)
runs-on: macos-14
needs: test-swiftui-debug
if: ${{ github.event_name != 'push' && github.event.inputs.uikit_snapshots != 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.CI_BOT_GITHUB_TOKEN }} # to open a PR
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/bootstrap
env:
INSTALL_YEETD: true
SKIP_MINT_BOOTSTRAP: true
SKIP_BREW_BOOTSTRAP: true
- name: Run UI Tests (Debug)
run: bundle exec fastlane test_uikit device:"${{ env.IOS_SIMULATOR_DEVICE }}" record:${{ github.event.inputs.uikit_snapshots }}
timeout-minutes: 40
env:
XCODE_VERSION: "15.2" # the most stable pair of Xcode
IOS_SIMULATOR_DEVICE: "iPhone 15 Pro (17.2)" # and iOS
- name: Parse xcresult
if: failure()
run: |
brew install chargepoint/xcparse/xcparse
xcparse screenshots fastlane/test_output/StreamVideoUIKit.xcresult fastlane/test_output/snapshots --test
- uses: actions/upload-artifact@v4
if: failure()
with:
name: UIKit Test Data
path: |
~/Library/Logs/scan
fastlane/test_output/snapshots
# test-uikit-debug:
# name: Test UIKit (Debug)
# runs-on: macos-14
# needs: test-swiftui-debug
# if: ${{ github.event_name != 'push' && github.event.inputs.uikit_snapshots != 'false' }}
# env:
# GITHUB_TOKEN: ${{ secrets.CI_BOT_GITHUB_TOKEN }} # to open a PR
# steps:
# - uses: actions/[email protected]
# - uses: ./.github/actions/bootstrap
# env:
# INSTALL_YEETD: true
# SKIP_MINT_BOOTSTRAP: true
# SKIP_BREW_BOOTSTRAP: true
# - name: Run UI Tests (Debug)
# run: bundle exec fastlane test_uikit device:"${{ env.IOS_SIMULATOR_DEVICE }}" record:${{ github.event.inputs.uikit_snapshots }}
# timeout-minutes: 40
# env:
# XCODE_VERSION: "15.2" # the most stable pair of Xcode
# IOS_SIMULATOR_DEVICE: "iPhone 15 Pro (17.2)" # and iOS
# - name: Parse xcresult
# if: failure()
# run: |
# brew install chargepoint/xcparse/xcparse
# xcparse screenshots fastlane/test_output/StreamVideoUIKit.xcresult fastlane/test_output/snapshots --test
# - uses: actions/upload-artifact@v4
# if: failure()
# with:
# name: UIKit Test Data
# path: |
# ~/Library/Logs/scan
# fastlane/test_output/snapshots

automated-code-review:
name: Automated Code Review
Expand Down Expand Up @@ -212,7 +212,7 @@ jobs:
build-test-app-and-frameworks:
name: Build Test App and Frameworks
runs-on: macos-14
needs: test-uikit-debug
needs: test-llc-debug
if: ${{ github.event_name != 'push' && github.event.inputs.swiftui_snapshots != 'true' && github.event.inputs.uikit_snapshots != 'true' }}
steps:
- uses: actions/[email protected]
Expand Down
Loading

0 comments on commit 4e36f3a

Please sign in to comment.