Skip to content

ci: GitHub Actions for Xcode 15 beta #189

ci: GitHub Actions for Xcode 15 beta

ci: GitHub Actions for Xcode 15 beta #189

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:
ios-unit-tests:
strategy:
matrix:
xcode_version: ['/Applications/Xcode_14.2.app', '/Applications/Xcode_15.0.app']
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
- name: Select Xcode
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 '${{ matrix.destination }}' test
tvos-unit-tests:
strategy:
matrix:
xcode_version: ['/Applications/Xcode_14.2.app', '/Applications/Xcode_15.0.app']
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
- name: Select Xcode
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 '${{ matrix.destination }}' test
ios-nolocation-unit-tests:
strategy:
matrix:
xcode_version: ['/Applications/Xcode_14.2.app', '/Applications/Xcode_15.0.app']
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
- name: Select Xcode
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 '${{ matrix.destination }}' test
tvos-nolocation-unit-tests:
strategy:
matrix:
xcode_version: ['/Applications/Xcode_14.2.app', '/Applications/Xcode_15.0.app']
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
- name: Select Xcode
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 '${{ matrix.destination }}' test