Skip to content

Commit

Permalink
expand matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonStalnaker committed Aug 23, 2023
1 parent c81d0b8 commit ec14555
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/native-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ jobs:
strategy:
matrix:
xcode_version: ['/Applications/Xcode_14.2.app', '/Applications/Xcode_15.0.app']
runs-on: macos-latest
destination: ['platform=iOS Simulator,name=iPhone 14,OS=latest', 'platform=iOS Simulator,name=iPhone 14,OS=17.0']
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -22,13 +23,14 @@ jobs:
run: sudo xcode-select -s ${{ matrix.xcode_version }}

- name: Run iOS unit tests
run: xcodebuild -project mParticle-Apple-SDK.xcodeproj -scheme mParticle-Apple-SDK -destination "platform=iOS Simulator,name=iPhone 14,OS=latest" test
run: xcodebuild -project mParticle-Apple-SDK.xcodeproj -scheme mParticle-Apple-SDK -destination '${{ matrix.destination }}' test

tvos-unit-tests:
strategy:
matrix:
xcode_version: ['/Applications/Xcode_14.2.app', '/Applications/Xcode_15.0.app']
runs-on: macos-latest
destination: ['platform=tvOS Simulator,name=Apple TV,OS=latest', 'platform=tvOS Simulator,name=Apple TV,OS=17.0']
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -37,13 +39,14 @@ jobs:
run: sudo xcode-select -s ${{ matrix.xcode_version }}

- name: Run tvOS unit tests
run: xcodebuild -project mParticle-Apple-SDK.xcodeproj -scheme mParticle-Apple-SDK -destination "platform=tvOS Simulator,name=Apple TV,OS=latest," test
run: xcodebuild -project mParticle-Apple-SDK.xcodeproj -scheme mParticle-Apple-SDK -destination '${{ matrix.destination }}' test

ios-nolocation-unit-tests:
strategy:
matrix:
xcode_version: ['/Applications/Xcode_14.2.app', '/Applications/Xcode_15.0.app']
runs-on: macos-latest
destination: ['platform=iOS Simulator,name=iPhone 14,OS=latest', 'platform=iOS Simulator,name=iPhone 14 Pro,OS=17.0']
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -52,13 +55,14 @@ jobs:
run: sudo xcode-select -s ${{ matrix.xcode_version }}

- name: Run iOS unit tests
run: xcodebuild -project mParticle-Apple-SDK.xcodeproj -scheme mParticle-Apple-SDK-NoLocation -destination "platform=iOS Simulator,name=iPhone 14,OS=latest" test
run: xcodebuild -project mParticle-Apple-SDK.xcodeproj -scheme mParticle-Apple-SDK-NoLocation -destination '${{ matrix.destination }}' test

tvos-nolocation-unit-tests:
strategy:
matrix:
xcode_version: ['/Applications/Xcode_14.2.app', '/Applications/Xcode_15.0.app']
runs-on: macos-latest
destination: ['platform=tvOS Simulator,name=Apple TV,OS=latest', 'platform=tvOS Simulator,name=Apple TV,OS=17.0']
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -67,4 +71,4 @@ jobs:
run: sudo xcode-select -s ${{ matrix.xcode_version }}

- name: Run tvOS unit tests
run: xcodebuild -project mParticle-Apple-SDK.xcodeproj -scheme mParticle-Apple-SDK-NoLocation -destination "platform=tvOS Simulator,name=Apple TV,OS=latest" test
run: xcodebuild -project mParticle-Apple-SDK.xcodeproj -scheme mParticle-Apple-SDK-NoLocation -destination '${{ matrix.destination }}' test

0 comments on commit ec14555

Please sign in to comment.