-
Notifications
You must be signed in to change notification settings - Fork 3
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 ci.yml #149
add ci.yml #149
Conversation
|
WalkthroughThis change introduces a comprehensive Continuous Integration (CI) workflow using GitHub Actions to automate code formatting checks with Prettier. Triggered by pull requests to the main branch, it ensures consistent formatting across various file types, enhancing code quality and maintainability. Additionally, configuration files are added to manage formatting rules specifically for Liquid templates and to define scripts for efficient development workflows. Changes
Assessment against linked issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- .github/workflows/ci.yml (1 hunks)
Files skipped from review due to trivial changes (1)
- .github/workflows/ci.yml
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- .github/workflows/ci.yml (1 hunks)
Files skipped from review due to trivial changes (1)
- .github/workflows/ci.yml
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- .github/workflows/ci.yml (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- .github/workflows/ci.yml
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.
Actionable comments posted: 0
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
package-lock.json
is excluded by!**/package-lock.json
Files selected for processing (3)
- .github/workflows/ci.yml (1 hunks)
- .prettierrc (1 hunks)
- package.json (1 hunks)
Files skipped from review due to trivial changes (2)
- .prettierrc
- package.json
Files skipped from review as they are similar to previous changes (1)
- .github/workflows/ci.yml
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- package.json (1 hunks)
Additional comments not posted (2)
package.json (2)
2-5
: Scripts for local formatting checks are well-defined.The scripts for checking and formatting code using Prettier are correctly set up. This aligns with the existing comment suggesting their addition.
6-9
: Dependencies for Prettier and Liquid plugin are correctly specified.The dependencies for Prettier and the Shopify Liquid plugin are appropriately included, ensuring compatibility with the specified versions.
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.
@koilebeit it looks good but I could not test whether prettier respects the prettier ignore locally. Thanks for checking this out
I have tested it and it works fine. However, I have adjusted the script so that |
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.
Actionable comments posted: 0
Pull request
Proposed changes
resolves #83
I have successfully tested it locally with act, so it should work.
Types of changes
Checklist
Summary by CodeRabbit
New Features
.prettierignore
file to specify directories and files to be excluded from formatting..prettierrc
configuration file for formatting Liquid templates in HTML files.Improvements