-
-
Notifications
You must be signed in to change notification settings - Fork 48
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(nodejs): only run on LTS version #128
Conversation
That would make sense. I'm still not convinced by the CI checks though: they run automatically at times when I know they won't detect any issue, for instance after a simple rebase on the main branch. In that kind of case, they just slow down my workflow. Wouldn't there be a way to turn off the CI tests and run equivalent checks during the |
They basically run Maybe their benefit is mainly on Pull Requests then for you? To ensure code additions are working and are compatible with other Node.js versions? |
Ensuring code additions are working is already covered by the prepack script being run before |
The CI basically also just installs other Node.js versions via This could be added to local scripts but I think it overcomplicates things. The main thing to ensure is the target version of typescript. Then everything else should just work as TypeScript should handle that (or fail to compile on any Node.js version). Therefore the different Node.js versions are basically a pointless test. |
Isn't that already covered by |
yeah, the CI runs I do like to have a CI setup which ensures "yes, everything is working as expected" which is not some "works on my machine". Also relevant: Typescript v5 requires Node.js 14 to compile (the result can still be used on older versions). So these tests here wont work on Node.js 12 as TypeScript cant compile the code. I think a good way forward is using |
1d4f08b
to
aa7c38f
Compare
Node.js 20 will be a LTS version from 2023-10-24. Its probably a good idea to also test against it.