-
Notifications
You must be signed in to change notification settings - Fork 9
Add JS & CSS lint actions on PRs #51
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
Conversation
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 have a few more ideas in mind which can be implemented in this workflow:
- We can run linting for the package.json using
npm run lint:pkg-json
, so it's makes sense to add it as well. actions/cache@v3
GHA can be used for node_modules cache.- Add concurrency so that previous tests can be canceled if new changes pushed recently.
- We can specify when to run a workflow on PR i.e.
pull_request:
types:
- synchronize
- opened
- ready_for_review
Should we run this workflow on Node 14 as well?
|
||
on: | ||
pull_request: | ||
paths: |
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.
Do we need to require paths explicitly? We already have specified paths in the npm:lint*
commands.
@RahiDroid Should we include JS tests in this workflow as well? |
Co-authored-by: Lovekesh Kumar <lovekesh.kumar@rtcamp.com>
Added!
Actions documentation states that, "It is not recommended to cache node_modules, as it can break across Node versions and won’t work with npm ci".
Yup, adding
I don't think it's necessary.
Should be part of different workflow but will add |
Description
Adds JS & CSS lint checks on PRs
Technical Details
Checklist
Screenshots
To-do
Fixes/Covers issue
Fixes #