Skip to content

Feature/spm workflow #129

Feature/spm workflow

Feature/spm workflow #129

Workflow file for this run

name: CI
on: [pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- ios: "16.2"
os: "macos-latest"
xcode: "14.2"
name: Run UI Test on iOS ${{ matrix.ios }}
runs-on: ${{ matrix.os }}
env:
platform: ${{ 'iOS Simulator' }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install required tools
run: |
brew update
brew install xcodegen
- name: Select Xcode version ${{ matrix.xcode }}
run: |
sudo xcversion installed
sudo xcversion select ${{ matrix.xcode }}
- name: Generate projects;
run: |
cd Example; xcodegen
cd SPM; xcodegen
- name: Build App
run: |
Scripts/run_build.rb Example/SBTUITestTunnel.xcworkspace
- name: Run UI Tests
run: |
Scripts/run_uitests.rb Example/SBTUITestTunnel.xcworkspace
- name: Collect UI Tests artifacts
uses: actions/upload-artifact@v3
with:
name: SBTUITestTunnel_Tests_iOS_${{ matrix.ios }}.xcresult
path: SBTUITestTunnel_Tests.xcresult
if: success() || failure()
- name: Run no swizzling UI Tests
run: |
Scripts/run_uitests_no_swizzling.rb Example/SBTUITestTunnel.xcworkspace
- name: Collect no swizzling UI Tests artifacts
uses: actions/upload-artifact@v3
with:
name: SBTUITestTunnel_TestsNoSwizzling_iOS_${{ matrix.ios }}.xcresult
path: SBTUITestTunnel_TestsNoSwizzling.xcresult
if: success() || failure()
- name: Build SPM App
run: |
Scripts/run_build.rb Example/SPM/SBTUITestTunnel.xcodeproj
- name: Run SPM UI Tests
run: |
Scripts/run_uitests.rb Example/SPM/SBTUITestTunnel.xcodeproj