Skip to content

Commit

Permalink
Tests run on macos15 using an iPhone 16 Pro simulator with iOS 18
Browse files Browse the repository at this point in the history
  • Loading branch information
krugerk committed Sep 27, 2024
1 parent b327ccc commit 4ca0a75
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fastlane-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:

jobs:
build:
runs-on: macos-14
runs-on: macos-15

steps:
- uses: maxim-lobanov/setup-xcode@v1
Expand Down
14 changes: 12 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,25 @@ platform :ios do
)
end
lane :ci do
sh("xcrun simctl list devices")
sleep 1

sh("xcrun simctl delete all")
sh("xcrun simctl create Test-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-15 com.apple.CoreSimulator.SimRuntime.iOS-17-2")
sleep 5

sh("xcrun simctl list devicetypes")
sh("xcrun simctl list runtimes")

sh("xcrun simctl create Test-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-16-Pro com.apple.CoreSimulator.SimRuntime.iOS-18-0")
sleep 5
sh("xcrun simctl list devices")

run_tests(
scheme: "BeeSwift",
reset_simulator: true,
include_simulator_logs: true,
buildlog_path: "fastlane/test_output",
xcodebuild_formatter: "xcpretty",
devices: ["Test-iPhone"],
ensure_devices_found: true,
)
end
Expand Down

0 comments on commit 4ca0a75

Please sign in to comment.