Skip to content
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

GitHub Action to run tests on current versions of Node.js #957

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Sep 29, 2023

Test results: https://github.com/cclauss/nan/actions

@rvagg Your review, please.

Comment on lines 22 to 26
# - run: npm ci
- run: npm install
# - run: npm run build --if-present
- run: npm run rebuild-tests-2017
# - run: npm test
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the commented out lines? I think npm ci would be better to use than npm install. I also don't see a rebuild-tests-2017 script in this repo, only rebuild-tests-2015.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recently redid the scripts 848a433

@cclauss cclauss force-pushed the patch-1 branch 2 times, most recently from 45275bc to a4c43c0 Compare January 13, 2025 08:21
@cclauss cclauss requested review from dsanders11 and kkoopa January 13, 2025 08:23
@cclauss
Copy link
Contributor Author

cclauss commented Jan 13, 2025

The tests pass so let’s merge without Node.js v23 until

Comment on lines 17 to 18
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0

It's generally best practice to pin these to commit SHA.

Copy link
Contributor Author

@cclauss cclauss Jan 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes Dependabot, et al chatty but let’s go for it.

.github/workflows/ci.yml Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants