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

Set up GitHub actions to run Swift linter in CI #1425

Merged
merged 1 commit into from
Dec 7, 2021
Merged

Set up GitHub actions to run Swift linter in CI #1425

merged 1 commit into from
Dec 7, 2021

Conversation

calda
Copy link
Member

@calda calda commented Dec 7, 2021

This PR is a first step towards setting up GitHub Actions for this repo.

This PR specifically integrates SwiftFormat and SwiftLint, following the pattern used by airbnb/epoxy-ios (bundle exec rake lint:swift / bundle exec rake format:swift to lint or format, which invokes SwiftFormat and SwiftLint using mint run).

@calda
Copy link
Member Author

calda commented Dec 7, 2021

Checks currently fail, which suggests everything is set up correctly:

image

Will push a commit that runs bundle exec rake format:swift, and then checks should pass 🤞🏻

@calda
Copy link
Member Author

calda commented Dec 7, 2021

Nice, checks pass now!

image

@calda calda marked this pull request as ready for review December 7, 2021 18:00
Copy link
Contributor

@thedrick thedrick left a comment

Choose a reason for hiding this comment

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

super exciting!

calda added a commit that referenced this pull request Dec 7, 2021
Add linter configuration from airbnb/swift

Add Rakefile with lint and format commands

Add Mintfile to specify SwiftFormat and SwiftLint dependency versions

bundle install

Add GitHub Action step that runs linter

Udpdate Rakefile to lint lottie-swift folder

Run linter

Run linter

Fix Rakefile

Run SwiftLint on Example folder

Fix lint-only SwiftLint violations
@calda calda force-pushed the cal--lint branch 2 times, most recently from e4207b4 to 8e2bc5c Compare December 7, 2021 19:37
@calda calda merged commit faeeed2 into master Dec 7, 2021
@erichoracek erichoracek deleted the cal--lint branch January 12, 2022 01:24
MoroziOS pushed a commit to MoroziOS/tmg-lottie-ios that referenced this pull request May 22, 2024
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