Skip to content
Closed
Show file tree
Hide file tree
Changes from 5 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 .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2.1
orbs:
ios: kevnm67/ios-pipelines@dev:alpha
ios: kevnm67/ios-orb@0.0.1
slack: circleci/slack@4.12.0

ios_contexts: &ios_contexts [iOS, slack]
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,4 @@ fastlane/test_output
.env.*.local
.env
.env.local
.DS_Store
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict
- id: mixed-line-ending
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ source 'https://rubygems.org'
gem 'cocoapods'
gem 'danger'
gem 'danger-prose'
gem 'fastlane'
gem 'fastlane', '>= 2.230.0'
gem 'jazzy'
gem 'slather'
gem 'xcpretty'
Expand Down
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ GEM

PLATFORMS
arm64-darwin-22
arm64-darwin-24
x86_64-darwin-20
x86_64-linux

Expand Down
10 changes: 5 additions & 5 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,23 @@ platform :ios do
## TESTING & CODE COVERAGE ##
#############################

desc 'Run tests using iphone X sim'
lane :test_iphone_x do
desc 'Run tests using iPhone 16 Pro sim'
lane :test_iphone_15 do
Comment thread
qltysh[bot] marked this conversation as resolved.
Comment thread
qltysh[bot] marked this conversation as resolved.
Comment thread
qltysh[bot] marked this conversation as resolved.

@qltysh qltysh Bot Dec 20, 2025

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use normalcase for symbol numbers. [rubocop:Naming/VariableNumber]

run_tests_for_device(
project_base_name: project_base_name,
schemes: schemes_to_test,
device: 'iPhone X'
device: 'iPhone 16 Pro'
)
end

desc 'Run tests using iPhone Pro'
desc 'Run tests using iPhone 15 Pro'
lane :test_iphone_pro do
Dotenv.load('.env.local', '.env.development') unless is_ci?

run_tests_for_device(
project_base_name: project_base_name,
schemes: schemes_to_test,
device: 'iPhone 12 Pro'
device: 'iPhone 15 Pro'
)
end

Expand Down
6 changes: 3 additions & 3 deletions fastlane/Helpers/BaseFastfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ platform :ios do
lane :test_tv_os do
run_tests_for_device(
schemes: ['MobileCI-tvOS'],
device: 'Apple TV 1080p'
device: 'Apple TV'
)
end

Expand All @@ -61,7 +61,7 @@ platform :ios do
lane :run_tests_for_device do |options|
test_schemes = options[:schemes] || schemes_to_test
project_name = options[:project_base_name] || project_base_name
device = options[:device] || 'iPhone 14 Pro'
device = options[:device] || 'iPhone 15 Pro'

test_schemes.each do |scheme|
UI.message "Running tests for scheme #{scheme}"
Expand All @@ -83,7 +83,7 @@ platform :ios do
scheme: scheme,
skip_slack: is_ci,
code_coverage: true,
device: options[:device] || 'iPhone 14 Pro',
device: options[:device] || 'iPhone 15 Pro',
buildlog_path: artifacts_path('xctest/logs'),
slack_only_on_failure: true
)
Expand Down
8 changes: 4 additions & 4 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,21 @@ cache_prefix - optional. Default is project_base_name.



### ios test_iphone_x
### ios test_iphone_15

```sh
[bundle exec] fastlane ios test_iphone_x
[bundle exec] fastlane ios test_iphone_15
```

Run tests using iphone X sim
Run tests using iPhone 16 Pro sim

### ios test_iphone_pro

```sh
[bundle exec] fastlane ios test_iphone_pro
```

Run tests using iPhone Pro
Run tests using iPhone 15 Pro

### ios do_cart_update

Expand Down
Loading