-
Notifications
You must be signed in to change notification settings - Fork 127
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
[CI] Replace npm
with make
commands and use them in workflows
#950
base: master
Are you sure you want to change the base?
Conversation
…efile Signed-off-by: shinigami-777 <chattopadhyaytamaghna@gmail.com>
Signed-off-by: shinigami-777 <chattopadhyaytamaghna@gmail.com>
Signed-off-by: shinigami-777 <chattopadhyaytamaghna@gmail.com>
@leecalcote I have tested that all the mentioned make commands are working and the workflow runs are successful on my branch. https://github.com/shinigami-777/sistent/actions/runs/13609283622 |
Running workflows... |
.github/workflows/node-checks.yml
Outdated
|
||
- name: Run Tests | ||
run: npm run test | ||
run: make run-tests |
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.
Invert please. Noun first, verb second.
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.
Renamed to test-run
Makefile
Outdated
npm run build | ||
|
||
package-build-watch: setup | ||
## Buid Sistent in watch mode | ||
build-watch: |
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.
This needs renamed.
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.
Renamed it to watch-build
. Does this work?
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.
verb-verb? No, it does not work. Refer to our other projects for examples.
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 referred to the examples but was unable to find an exact case (it did help me understand the naming scheme) Suggesting a few as I'm not very confident with my naming...dev-build
, watchmode-build
, watcher-build
. Do these work?
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.
Renamed it to watchmode-build
.
Makefile
Outdated
npm run lint | ||
|
||
## Run tests | ||
run-tests: |
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.
rename
npm run format:write | ||
|
||
## Run Eslint on your local machine | ||
lint: |
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 two separate commands for formatting and linting? Combine them?
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.
Yes, combined both under a single make lint
command.
Signed-off-by: shinigami-777 <chattopadhyaytamaghna@gmail.com>
Signed-off-by: shinigami-777 <chattopadhyaytamaghna@gmail.com>
Notes for Reviewers
This PR fixes #942 .
Makefile.show-help.mk
file frommeshery/meshery
.README.md
andCONTRIBUTING.md
accordingly.Signed commits