Skip to content

chore: Bump CI to Xcode 15.1. Bump gems. [UI-5186] #860

chore: Bump CI to Xcode 15.1. Bump gems. [UI-5186]

chore: Bump CI to Xcode 15.1. Bump gems. [UI-5186] #860

Workflow file for this run

# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md
# https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md
# https://github.com/actions/cache/blob/ff937cc95032836a535d249de4ce2fc52aeae834/examples.md
name: Tests
on:
pull_request:
jobs:
spm:
name: Swift Package Manager
runs-on: macos-13-xlarge
steps:
- name: Switch To Xcode 15.1
run: sudo xcode-select -switch /Applications/Xcode_15.1.app
- name: Checkout repository
uses: actions/checkout@v1
# Build
- name: Build
run: xcodebuild -scheme "Listable-Package" -destination "platform=iOS Simulator,OS=17.2" -sdk iphonesimulator build
ios_17:
name: iOS 17
runs-on: macos-13-xlarge
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Read env
run: cat .github/workflows/env.properties >> $GITHUB_ENV
- name: Switch to Xcode ${{ env.xcode_version }}
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcode_version }}.app
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
# Uses version specified in .ruby_version
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
# Build Caching
- name: Cache Cocoapods
uses: actions/cache@v2
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
# Install & Build
- name: Pod Install
run: bundle exec pod install --repo-update
- name: Run Tests
run: Scripts/run_ios17_tests.sh
ios_16:
name: iOS 16
runs-on: macos-13-xlarge
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Read env
run: cat .github/workflows/env.properties >> $GITHUB_ENV
- name: Switch to Xcode ${{ env.xcode_version }}
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcode_version }}.app
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
# Uses version specified in .ruby_version
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
# Build Caching
- name: Cache Cocoapods
uses: actions/cache@v2
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
# Install & Build
- name: Pod Install
run: bundle exec pod install --repo-update
- name: Run Tests
run: Scripts/run_ios16_tests.sh
ios_15:
name: iOS 15
runs-on: macos-13-xlarge
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Read env
run: cat .github/workflows/env.properties >> $GITHUB_ENV
- name: Switch to Xcode ${{ env.xcode_version }}
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcode_version }}.app
- name: Install xcodes
run: brew install aria2 xcodesorg/made/xcodes
- name: Install iOS ${{ matrix.sdk }}
run: sudo xcodes runtimes install "iOS 15.2"
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
# Uses version specified in .ruby_version
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
# Build Caching
- name: Cache Cocoapods
uses: actions/cache@v2
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
# Install & Build
- name: Pod Install
run: bundle exec pod install --repo-update
- name: Run Tests
run: Scripts/run_ios15_tests.sh
ios_14:
name: iOS 14
runs-on: macos-13-xlarge
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Read env
run: cat .github/workflows/env.properties >> $GITHUB_ENV
- name: Switch to Xcode ${{ env.xcode_version }}
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcode_version }}.app
- name: Install xcodes
run: brew install aria2 xcodesorg/made/xcodes
- name: Install iOS ${{ matrix.sdk }}
run: sudo xcodes runtimes install "iOS 14.5"
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
# Uses version specified in .ruby_version
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
# Build Caching
- name: Cache Cocoapods
uses: actions/cache@v2
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
# Install & Build
- name: Pod Install
run: bundle exec pod install --repo-update
- name: Run Tests
run: Scripts/run_ios14_tests.sh