Skip to content

Commit

Permalink
fix iOS 13
Browse files Browse the repository at this point in the history
  • Loading branch information
philipphofmann committed Feb 20, 2024
1 parent 2e33c77 commit dec48ef
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,14 @@ jobs:
ios-swift-ui-tests:
name: iOS SwiftUI Tests
name: iOS SwiftUI Tests ${{matrix.device}}
runs-on: ${{matrix.runs-on}}
strategy:
fail-fast: false
matrix:
include:
- runs-on: macos-11
xcode: "11.7"
xcode: "13.2.1"
device: "iPhone 8 (13.7)"

- runs-on: macos-12
Expand All @@ -132,6 +132,14 @@ jobs:
- uses: actions/checkout@v4
- run: ./scripts/ci-select-xcode.sh ${{matrix.xcode}}

# Workaround with a symlink pointed out in: https://github.com/actions/virtual-environments/issues/551#issuecomment-637344435
- name: Prepare iOS 13.7 simulator
if: ${{ matrix.device == 'iPhone 8 (13.7)' }}
run: |
sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes
sudo ln -s /Applications/Xcode_11.7.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 13.7.simruntime
xcrun simctl create custom-test-device "iPhone 8" "com.apple.CoreSimulator.SimRuntime.iOS-13-7"
# GitHub Actions sometimes fail to launch the UI tests. Therefore we retry
- name: Run Fastlane
run: for i in {1..2}; do fastlane ui_tests_ios_swift device:"${{matrix.device}}" address_sanitizer:true && break ; done
Expand Down

0 comments on commit dec48ef

Please sign in to comment.