-
Notifications
You must be signed in to change notification settings - Fork 12
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
Update Node version range in CI, use modern Node version #66
base: master
Are you sure you want to change the base?
Update Node version range in CI, use modern Node version #66
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.
Should work. My security hat has some additional ideas, that shouldn't block this PR from being merged.
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
uses: actions/setup-node@v4 |
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.
Nitpick: While this would work (and is pretty common) I personally prefer to have the whole SemVer in my workflows as this eases an (security) audit.
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [12.x, 14.x] | ||
node-version: [18, 20, 22] |
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.
It might help to drop a link to https://github.com/actions/runner-images#support-policy as comment before.
@rdmurphy If you agree with those suggestions, then I'll wait for the changes and then we can merge this puppy! 🐶 |
Closes #42.
Hello! I saw the post on Mastodon and the organizing issue and decided to try and help if I can! I did a few things here, mostly with the goal of establishing a solid foundation for testing future changes against modern versions of Node.
master
and PRs againstmaster
. I think this will put the matrix testing to better use (and because PRs are made of commits, those will still get tested!)v18
,v20
andv22
.v20
is the current LTS version, but it goes into maintenance mode in 15 days andv22
will take its place.actions/setup-node@v4
will use caching to speed up installs.v22
in the project. Could see an argument for usingv20
instead, but did so for the same reason as above!package-lock.json
appeared to be out of sync because every install would update it locally. I updated the CI command to usenpm ci
instead ofnpm install
which would catch this mismatch. Definitely some dependencies that could stand to be updated, but all tests are passing, which is nice.If any/all of this doesn't feel like it makes sense, just let me know! (Or feel free to close it if I'm way off base.)