Skip to content

test: Fix unit tests and add isLaunch test #261

test: Fix unit tests and add isLaunch test

test: Fix unit tests and add isLaunch test #261

Workflow file for this run

name: Xcode Tests
on:
# Run for all PRs
pull_request:
# Run again once merged into development branch
push:
branches:
- development
jobs:
native-unit-tests:
strategy:
matrix:
xcode: ["15.0"]
platform: [iOS, tvOS]
scheme: [mParticle-Apple-SDK, mParticle-Apple-SDK-NoLocation]
include:
- platform: iOS
device: iPhone 15
- platform: tvOS
device: Apple TV
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: Run iOS unit tests
run: xcodebuild -project mParticle-Apple-SDK.xcodeproj -scheme ${{ matrix.scheme }} -destination 'platform=${{ matrix.platform }} Simulator,name=${{ matrix.device }},OS=latest' test