Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: integrate midnight smoker in ci #1663

Conversation

couragecowardlydog
Copy link

@couragecowardlydog couragecowardlydog commented Mar 3, 2023

Fix: #1570

@mcollina @jsumners , please review and provide your comments

Added a copy of example/basic.js in root as smoke.js

feat: include examples in pack & add script for midnight smoker test
chore: remove files that doesn't exists on root
Add smoke file & update ci script
package.json Outdated
@@ -25,10 +23,11 @@
"lint": "eslint .",
"prepublishOnly": "tap --no-check-coverage test/internals/version.test.js",
"test": "npm run lint && npm run transpile && tap --ts && jest test/jest && npm run test-types",
"test-ci": "npm run lint && npm run transpile && tap --ts --no-check-coverage --coverage-report=lcovonly && npm run test-types",
"test-ci": "npm run lint && npm run transpile && tap --ts --no-check-coverage --coverage-report=lcovonly && npm run test-types && npx midnight-smoker test-ci-smoke",
Copy link
Contributor

Choose a reason for hiding this comment

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

no additional dependency is needed?

Copy link
Author

Choose a reason for hiding this comment

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

Nope

Copy link
Member

Choose a reason for hiding this comment

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

I would prefer to avoid npx and add midnight-smoker as a devdep.

Copy link
Author

Choose a reason for hiding this comment

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

@mcollina, added midnight-smoker as dev-dep. Included separate script as well

package.json Show resolved Hide resolved
@mcollina mcollina requested a review from jsumners March 3, 2023 16:22
fix: midnight-smoker as dev dependency
@couragecowardlydog couragecowardlydog requested review from mcollina and kibertoad and removed request for jsumners, mcollina and kibertoad March 4, 2023 03:18
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@couragecowardlydog
Copy link
Author

lgtm

@mcollina, the pipeline broke for some of the case, npm version compatibility

Minimum Node.js versions supported: ^14.17.0 || ^16.13.0 || >=18.0.0
Minimum npm version supported: v7.0.0

@kibertoad
Copy link
Contributor

@couragecowardlydog is it possible to run midnight smoker not through "exec" command?

@couragecowardlydog
Copy link
Author

@couragecowardlydog is it possible to run midnight smoker not through "exec" command?

@kibertoad, can I change the script like this

"smoker": "node ./node_modules/.bin/smoker test-ci-smoke",

is that fine ?

@kibertoad
Copy link
Contributor

I see no problem with that, if it ever stops working for whatever reason, CI will fail

Signed-off-by: couragecowardlydog <vivekanandansakthivelu@gmail.com>
@couragecowardlydog
Copy link
Author

couragecowardlydog commented Mar 4, 2023

I see no problem with that, if it ever stops working for whatever reason, CI will fail

@kibertoad Fixed that, can you please approve the workflow to see if CI goes through

Signed-off-by: couragecowardlydog <vivekanandansakthivelu@gmail.com>
Signed-off-by: couragecowardlydog <vivekanandansakthivelu@gmail.com>
@couragecowardlydog couragecowardlydog requested review from kibertoad and mcollina and removed request for kibertoad March 5, 2023 15:38
@couragecowardlydog couragecowardlydog requested review from kibertoad and mcollina and removed request for mcollina and kibertoad March 5, 2023 15:39
package.json Outdated Show resolved Hide resolved
Co-authored-by: Matteo Collina <matteo.collina@gmail.com>
Copy link

github-actions bot commented Mar 6, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 6, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add midnight-smoker to do some basic integration testing
3 participants