Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Xcode #205

Merged
merged 1 commit into from
Feb 21, 2024
Merged
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
29 changes: 12 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,23 @@ on: [pull_request]

jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- ios: "16.2"
os: "macos-latest"
xcode: "14.2"
name: Run UI Test on iOS ${{ matrix.ios }}
runs-on: ${{ matrix.os }}
runs-on: macos-13 # macos-latest does not ship with Xcode 15

name: Run UI Test on iOS
env:
platform: ${{ 'iOS Simulator' }}
xcode_version: "15.2"
steps:
- name: List Xcode installations
run: sudo ls -1 /Applications | grep "Xcode"
- name: Select Xcode version ${{ env.xcode_version }}
run: |
sudo xcode-select -s /Applications/Xcode_${{ env.xcode_version }}.app/Contents/Developer
- name: Checkout
uses: actions/checkout@v3
- name: Install required tools
run: |
brew update
brew install xcodegen
- name: Select Xcode version ${{ matrix.xcode }}
run: |
sudo xcversion installed
sudo xcversion select ${{ matrix.xcode }}
- name: Generate projects;
run: |
cd Example; xcodegen
Expand All @@ -39,7 +34,7 @@ jobs:
- name: Collect UI Tests artifacts
uses: actions/upload-artifact@v3
with:
name: SBTUITestTunnel_Tests_iOS_${{ matrix.ios }}.xcresult
name: SBTUITestTunnel_Tests_iOS.xcresult
path: SBTUITestTunnel_Tests.xcresult
if: success() || failure()
- name: Run no swizzling UI Tests
Expand All @@ -48,12 +43,12 @@ jobs:
- name: Collect no swizzling UI Tests artifacts
uses: actions/upload-artifact@v3
with:
name: SBTUITestTunnel_TestsNoSwizzling_iOS_${{ matrix.ios }}.xcresult
name: SBTUITestTunnel_TestsNoSwizzling_iOS.xcresult
path: SBTUITestTunnel_TestsNoSwizzling.xcresult
if: success() || failure()
- name: Build SPM App
run: |
Scripts/run_build.rb Example/SPM/SBTUITestTunnel.xcodeproj
- name: Run SPM UI Tests
run: |
Scripts/run_uitests.rb Example/SPM/SBTUITestTunnel.xcodeproj
Scripts/run_uitests.rb Example/SPM/SBTUITestTunnel.xcodeproj
Loading