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: test on Node.js 6, 8, 10 and 11 #525
Conversation
- nodejs_version: '8' | ||
- nodejs_version: '6' |
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 package doesn't support Node 6. Minimum requirement is Node 8.6
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.
Well, then it should be made clear in the engines
field. Otherwise people might run it on older 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.
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.
Not an ideal solution tbh, yarn --ignore engines
is recommended because the current solution provides no consistent behavior across different platforms. What if you run a CI runner on your pc?
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.
What do you mean by a CI runner?
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.
GitLab runner, SSH runner, tools like Surf / Deployer, ... which we use in CI and locally.
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.
Sorry I’m not following. I think the solution is okay since 🚫💩 lint-staged isn’t supposed to be used on CI so it shouldn’t break it. We have safety nets built in for runtime.
@@ -4,9 +4,10 @@ | |||
|
|||
language: node_js | |||
node_js: | |||
- 'node' |
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.
What does this mean? Which version is it going to be?
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.
node
is the current stable which is 11
at the moment.
- '8' | ||
- '6' |
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.
Same, please remove.
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.
After adding engines
to package.json, yes.
Closing this as stale, but opened a new one at #646 |
Node.js 9 was a short living branch and we should also test on the current LTS and stable branches.
See https://github.com/nodejs/Release/blob/master/README.md