Merge pull request #38 from mobillium/feature/AddTranslatesAutoresizi… #78
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MobilliumBuilders CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
Tests: | |
runs-on: ${{ matrix.runsOn }} | |
strategy: | |
matrix: | |
include: | |
- destination: 'platform=iOS Simulator,name=iPhone 11,OS=13.7' | |
name: 'iOS 13.7 Simulator' | |
runsOn: 'macOS-11' | |
os: '13.7' | |
xc_version: '12.5.1' | |
xc_simulator_version: '11.7' | |
- destination: 'platform=iOS Simulator,name=iPhone 12,OS=14.5' | |
name: 'iOS 14.5 Simulator' | |
runsOn: 'macOS-11' | |
os: '14.5' | |
xc_version: '12.5.1' | |
xc_simulator_version: '12.5.1' | |
- destination: 'platform=iOS Simulator,name=iPhone 13,OS=15.5' | |
name: 'iOS 15.5 Simulator' | |
runsOn: 'macOS-12' | |
os: '15.5' | |
xc_version: '14.2' | |
xc_simulator_version: '13.4.1' | |
- destination: 'platform=iOS Simulator,name=iPhone 14,OS=16.2' | |
name: 'iOS 16.2 Simulator' | |
runsOn: 'macOS-12' | |
os: '16.2' | |
xc_version: '14.2' | |
xc_simulator_version: '14.2' | |
env: | |
XC_WORKSPACE: ${{ 'Example/MobilliumBuilders.xcworkspace' }} | |
XC_SCHEME: ${{ 'MobilliumBuilders-Example' }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Select latest Xcode | |
run: "sudo xcode-select -s /Applications/Xcode_${{ matrix.xc_version }}.app" | |
- name: Install Dependencies | |
run: | | |
cd Example | |
pod install --repo-update | |
- name: Link to iOS ${{ matrix.os }} Simulators | |
run: | | |
echo "Creating Runtimes folder if needed..." | |
sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes | |
echo "Creating symlink of the iOS ${{ matrix.os }} runtime..." | |
sudo ln -s /Applications/Xcode_${{ matrix.xc_simulator_version }}.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ ${{ matrix.os }}.simruntime | |
- name: Run Unit and UI Tests | |
run: /usr/bin/xcodebuild test -workspace "$XC_WORKSPACE" -scheme "$XC_SCHEME" -destination '${{ matrix.destination }}' |