-
Notifications
You must be signed in to change notification settings - Fork 201
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 SwiftLint with default settings #149
Conversation
workflow_run: | ||
workflows: ["PR Labeler"] |
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 planned This workflow to run with PR Labeler workflow's completion.
but I can't check the workflow's actions. maybe it need to change a default branch i think. it's a troublesome so
If it don't working i'll fix if on the other PR👍
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.
Trigger by workflow is an interesting idea!
It might be nice and simple to use the fact that an iOS label has been assigned as a triggering event.
I think that would eliminate the need to fill in the if statement in the job.
https://docs.github.com/ja/actions/using-workflows/events-that-trigger-workflows#label
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.
Oh, Sorry.
I noticed that we can't specify the name of the label in the "on" part...
After all, the if statement had to be stated 🙇🏽♂️
app-ios/.swiftlint.yml
Outdated
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.
It's a demo configs from SwiftLint site.
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.
Thank you 🙌🏼
I made a few comments.
workflow_run: | ||
workflows: ["PR Labeler"] |
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.
Trigger by workflow is an interesting idea!
It might be nice and simple to use the fact that an iOS label has been assigned as a triggering event.
I think that would eliminate the need to fill in the if statement in the job.
https://docs.github.com/ja/actions/using-workflows/events-that-trigger-workflows#label
.github/workflows/swiftlint.yml
Outdated
runs-on: ubuntu-latest | ||
if: contains(github.event.pull_request.labels.*.name, 'iOS 🍎') | ||
steps: | ||
- uses: actions/checkout@v3 |
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.
Latest checkout action is v4.
Do you have any reason to use v3? 😲
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.
Thanks👍 I fixed it!
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.
Issue
Overview (Required)
Links
Screenshot (Optional if screenshot test is present or unrelated to UI)
Movie (Optional)