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

Pin to a specific simulator device and version #431

Merged
merged 1 commit into from
Jan 28, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/fastlane-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
ruby-version: '2.7.2'
bundler-cache: true
- name: Run tests
run: bundle exec fastlane test
run: bundle exec fastlane ci
- name: Upload report
uses: actions/upload-artifact@v4
if: always() # always run even if the previous step fails
Expand Down
11 changes: 11 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,23 @@ default_platform(:ios)

platform :ios do
lane :test do
run_tests(
scheme: "BeeSwift",
reset_simulator: true,
xcodebuild_formatter: "xcpretty",
)
end
lane :ci do
sh("xcrun simctl delete all")
sh("xcrun simctl create Test-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-15 com.apple.CoreSimulator.SimRuntime.iOS-17-2")
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
lane :build do
Expand Down