-
Notifications
You must be signed in to change notification settings - Fork 43
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
Switch testing to Fastlane + add SwiftLint #17
base: main
Are you sure you want to change the base?
Conversation
- Moves Build and Test step to Fastlane script (the results are a bit better with CircleCI) - Removes the Pods from KanvasCameraExample - Switches to the Cocoapods CDN source for faster builds - Removes the process.yml which is not needed
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.
This looks good! I think we need to just clean up the steps in CI, and we're all good.
name: Linting | ||
command: bundle install; bundle exec fastlane lint | ||
- run: | ||
name: Build for Testing |
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.
Let' call this "Build and Test"
- store_test_results: | ||
path: ./KanvasCameraExample/output/scan | ||
- store_artifacts: | ||
path: output | ||
- store_test_results: | ||
path: output/scan | ||
- ios/save-xcodebuild-artifacts | ||
- ios/save-xcodebuild-artifacts: |
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.
fastlane/Preview.html | ||
fastlane/report.xml | ||
fastlane/README.md | ||
|
||
KanvasCameraExample/Pods/* | ||
!KanvasCameraExample/Pods/Target\ Support\ Files/ |
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 we can remove this line, since you're deleting those files too.
This PR does two primary things:
More specifically:
.swiftlint.yml
for local and CI lintingswiflint
(this is the same code WordPress-iOS uses but put into a Fastlane action)lint
fastlane lane to run linting