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
[action][spm] add simulator flag for swift compiler #21707
Merged
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
27f4904
Add simulator flag to spm action for swift compiler
gharary 50e3f57
add user entry syntax check
gharary 52c9b05
removing ipadsimulator from syntax check
gharary 9b88cd9
Adding verify_block for flag check
gharary a066d0f
adding simulators list to user_error
gharary f61944a
Update fastlane/lib/fastlane/actions/spm.rb
gharary d83f680
Update fastlane/lib/fastlane/actions/spm.rb
gharary b07b167
Adding unit tests for simulator
gharary a26bcb1
Fix simulator typo
gharary a31086b
Update fastlane/spec/actions_specs/spm_spec.rb
gharary 39447f1
Fix typo.
rogerluan ce01c52
Adding support for different simulator architecture
gharary dfdb19b
Adding unit tests for simulator architecture
gharary 38334a8
Modify code by extracting the logic into methods
gharary 58de71f
Merge branch 'master' into spm-add-simulator
gharary 810b4bf
Update fastlane/lib/fastlane/actions/spm.rb
gharary 013fc34
Update fastlane/lib/fastlane/actions/spm.rb
gharary File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it looks like the macOS simulator command wasn't working (? can't really tell for sure ATM), is there any way we can add a unit test that makes sure not only the output command is the expected string, but that the command actually works?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't able to find a way to actually test the code in unit tests. I was thinking of using
open3
to catch the result of executing command, but then testing theswift build
command needs an actual SPM. So wasn't making sense to me. Any suggestion?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uhm, if we wanted, we could create a sample SPM just for testing purposes. But, on a second thought, I think we actually might not need this, as long as we test it manually and make sure it works with all configurations, this should be fine. The reason is that we'd be validating whether "swift build" works, and that's not really the intent of what fastlane's unit tests should be :)
So this is good as is 🙏 thank you!