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
Add Fastlane #4
Add Fastlane #4
Conversation
The fastlane command for me with The tests pass for me fine when running the actual I assume Fastlane needs everyone to have their Xcode 13 beta in the same name/location? |
In order to run the lane locally as it's currently written - yeah it would need to be in the same place. But i was looking at the other github actions in the current open PR - we could make the |
I'm a little confused. How would updating the Also, I think we could remove |
In the GH action flow, we could run For example:
If we want to use fastlane locally, it would be up to us to make sure the correct xcode has already been selected - hopefully this makes more sense. |
I see - you're saying to use Fastlane in CI as a way to test that Fastlane will work locally if you were to follow that same Xcode setup. I vote for removing the |
Ah i think we're thinking the same thing - I removed the |
Another general question - I know we talked about wanting to get parity in our test scripts across Android & iOS. We might want some Android 👀 on this as well - Is Fastlane a good option for Android as well? Also, I'm thinking ... using the I know you mentioned that we can use Fastlane to |
Fastlane can be used on Android as well - can't vouch for it personally though!
I definitely understand wanting to have more control / visibility into the command being executed. Benefit of having the command abstracted (even if we just call a bash xcodebuild command to run the test suite from a lane), is that it's easier to remember
the benefit of using fastlane just to wrap pushing our podspec is pretty minimal. fastlane could be beneficial if we decide to in the future take better advantage of other baked in fastlane actions (code coverage / doc gen). Maybe we can talk this week about whether or not we want to actually go this route, or if relying on github actions is sufficient for us right now |
From the Android side - I see that Fastlane is compatible but have never used it personally. Without knowing too much about the benefits it offers for Android, I also think there may be a lighter-weight solution like a bash script that would allow us to have parity in commands across repos without pulling in another tool. I'd second having a group conversation about the route we want to go for both iOS and Android. |
Gotcha, this makes sense! Also, it would be rad if we could automate builds to TestFlight at some point for our demo (I think we can super punt 🏈 on this though for now). I know that TestFlight doesn't always 100% match the App Store review process, but it can still be helpful and offer warnings/rejections. We've gotten burned in the past by not catching an App Store review issue until merchants reported it. I think Fastlane could be a good tool for something like this too. |
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "NO" | ||
buildForProfiling = "NO" | ||
buildForArchiving = "NO" | ||
buildForAnalyzing = "NO"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "PayPal::PayPalTests" | ||
BuildableName = "PayPalTests.xctest" | ||
BlueprintName = "PayPalTests" | ||
ReferencedContainer = "container:PayPal.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> |
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 think after your recent changes, this whole file can be reverted back now
After running this locally these files are generated:
Should we put these in the gitignore? |
Added the |
Co-authored-by: scannillo <35243507+scannillo@users.noreply.github.com>
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.
🚀
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 have one minor comment/question, otherwise this looks good to me!!!! 😄
Reason for changes
We can use Fastlane to
These are all things that can be done via a rakefile or exclusively through GH actions, but using fastlane means we can take advantage of the built in fastlane actions (https://docs.fastlane.tools/actions/), as well as have flexibility to run lanes from the command line instead of relying exclusively on GH actions to not fail.
In order to run fastlane via CI, we would just need to run
bundle exec fastlane tests
Summary of changes