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

Switch testing to Fastlane + add SwiftLint #17

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

bjtitus
Copy link
Collaborator

@bjtitus bjtitus commented Oct 30, 2020

This PR does two primary things:

  • Switches to Fastlane from the iOS orb scripts
  • Adds SwiftLint file and a fastlane lane to perform linting

More specifically:

  • 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
  • Adds .swiftlint.yml for local and CI linting
  • Downloads specified version of swiflint (this is the same code WordPress-iOS uses but put into a Fastlane action)
  • Adds a lint fastlane lane to run linting
  • Adds a step to the CI to run the linting.

- 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
@bjtitus bjtitus self-assigned this Oct 30, 2020
@bjtitus bjtitus marked this pull request as ready for review November 2, 2020 21:45
@bjtitus bjtitus requested a review from jschementi November 3, 2020 02:44
Copy link
Contributor

@jschementi jschementi left a 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
Copy link
Contributor

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"

Comment on lines +45 to 52
- 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:
Copy link
Contributor

Choose a reason for hiding this comment

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

This is duplicating steps in Ci, and the duplicates seem to be silently failing:
Screen Shot 2020-11-19 at 12 01 05 PM

fastlane/Preview.html
fastlane/report.xml
fastlane/README.md

KanvasCameraExample/Pods/*
!KanvasCameraExample/Pods/Target\ Support\ Files/
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants