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

chore: allow configuration of simulator sdk version when running spm tests #852

Merged
merged 6 commits into from
Apr 30, 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
1 change: 1 addition & 0 deletions .github/workflows/build-test-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
MATCH_KEYCHAIN_NAME: ${{ secrets.MATCH_KEYCHAIN_NAME }}
MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }}
SOURCE_BRANCH: ${{ github.head_ref }}

sdk-unit-tests:
runs-on: macos-13-large
timeout-minutes: 20
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/xcode-versions-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
- name: Build and archive app via SPM
if: ${{ matrix.variant == 'spm' }}
run: |
bundle exec fastlane test_spm
bundle exec fastlane test_spm sim_version:16.4
env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
MATCH_GIT_PRIVATE_KEY: ${{ secrets.SSH_KEY }}
Expand Down

This file was deleted.

11 changes: 7 additions & 4 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,19 +112,22 @@ platform :ios do
end

desc 'This action builds the app using the SPM integration'
lane :test_spm do
lane :test_spm do |options|
common_pre_build_action

sim_version = options[:sim_version] || "17.2"

run_tests(
package_path: ".",
scheme: "PrimerSDKTests",
sdk: "iphonesimulator17.2",
destination: "OS=17.2,name=iPhone 15 Pro",
sdk: "iphonesimulator#{sim_version}",
destination: "OS=#{sim_version},name=iPhone 14 Pro",
result_bundle: true,
code_coverage: true,
output_directory: Dir.pwd + "/test_output"
)
end

lane :build_cocoapods do |options|
common_pre_build_action

Expand Down