-
-
Notifications
You must be signed in to change notification settings - Fork 622
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
feat: use npm ci for tests (#367) #368
feat: use npm ci for tests (#367) #368
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.
Looks like its failing, could you check it out? Look at the logs
@ev1stensberg yes , did not notice that the used npm version is less than 5.7.0 will fix it now and push |
Sweet, I'll review once you're set! |
package.json
Outdated
@@ -96,6 +96,7 @@ | |||
"lodash": "^4.17.5", | |||
"log-symbols": "^2.2.0", | |||
"mkdirp": "^0.5.1", | |||
"npm": "^5.8.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.
Dont think you need npm installed
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.
preferably not
- commitlint-travis |
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.
Please don't remove newline at EOF. 😺
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 did not remove it , I added 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.
Oh yes. Thanks. ❤️
.appveyor.yml
Outdated
@@ -12,7 +12,8 @@ build: off | |||
|
|||
install: | |||
- ps: Install-Product node $env:nodejs_version $env:platform | |||
- npm install | |||
- npm install --global npm@5.8.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.
I'd prefer to do npm i -g npm
instead of locking to a version so that we always use the latest one.
@FadySamirSadek Thanks for your update. I labeled the Pull Request so reviewers will review it again. @dhruvdutt Please review the new changes. |
Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon. |
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.
LGTM. Thanks. 🎉
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.
LGTM. Thanks. 🎉
* feat: use npm ci for tests * fix(npm version): updated npm version to support npm ci * fix(npm version): removed npm from package.json and package-lock.json
What kind of change does this PR introduce?
This PR aims to replace npm install with npm ci which speeds up module installation when using CI systems like TravisCI
Did you add tests for your changes?
No
If relevant, did you update the documentation?
Summary
Solves #367
Does this PR introduce a breaking change?
Other information