Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/build-secondary-platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Secondary Platforms iOS Build

on:
workflow_dispatch:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down
21 changes: 4 additions & 17 deletions .github/workflows/native-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
max-parallel: 4
matrix:
platform: [iOS, tvOS]
scheme: [mParticle-Apple-SDK-NoLocation]
scheme: [mParticle-Apple-SDK-NoLocation, mParticle-Apple-SDK-Swift]
include:
- platform: iOS
device: iPhone 16 Pro
Expand All @@ -29,21 +29,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v6

- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ env.XCODE_VERSION }}

- name: Setup specified simulator
uses: futureware-tech/simulator-action@v4
id: simulator
with:
model: ${{ matrix.device }}
os: ${{ matrix.platform }}
os_version: ">=18.0"
erase_before_boot: true
wait_for_boot: true
shutdown_after_job: true
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_${{ env.XCODE_VERSION }}.app

- name: Run unit tests
run: xcodebuild -project mParticle-Apple-SDK.xcodeproj -scheme ${{ matrix.scheme }} -destination 'id=${{ steps.simulator.outputs.UDID }}' test
run: xcodebuild -project mParticle-Apple-SDK.xcodeproj -scheme ${{ matrix.scheme }} -destination 'platform=${{ matrix.platform }} Simulator,name=${{ matrix.device }},OS=latest' test
1 change: 1 addition & 0 deletions mParticle-Apple-SDK-Swift/Test/Utils/MPDeviceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class MPIdentityApiMPDeviceMock: MPIdentityApiMPDeviceProtocol {
}
}

@available(iOS 16, tvOS 16, *)
final class MPDeviceTests: XCTestCase {

func testDictionaryDescription() {
Expand Down
Loading