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

smoke test #634

Draft
wants to merge 27 commits into
base: master
Choose a base branch
from
Draft

smoke test #634

wants to merge 27 commits into from

Conversation

rotu
Copy link
Contributor

@rotu rotu commented Jun 18, 2024

Install this package as a dependency in a clean project

@rotu
Copy link
Contributor Author

rotu commented Jun 19, 2024

D'oh! I forgot that file: urls are treated differently:

note: Packages linked by local path will not have their own dependencies installed when npm install is ran in this case. You must run npm install from inside the local path itself.

- yarn
- pnpm
steps:
- uses: actions/setup-node@v4
Copy link
Member

Choose a reason for hiding this comment

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

This can include multiple versions such as 10, 12, 18, 22 to ensure compatibility across different versions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're absolutely right and I'd like to get there before this is merged. As you can see from my embarrassing commit history, I'm not quite there yet...

npm install "git+${{ github.repositoryUrl }}#${{ github.ref }}"
env:
NPM_CONFIG_LOGLEVEL: verbose

Copy link
Member

Choose a reason for hiding this comment

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

It would be great to run a simple example where zeromq is imported. This will ensure the runtime compatibility via the smoke test for different Nodejs versions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

.github/workflows/CI.yml Outdated Show resolved Hide resolved
steps:
- uses: actions/setup-node@v4
- run: |
npm init --init-module testproject -y
Copy link
Member

@aminya aminya Jun 20, 2024

Choose a reason for hiding this comment

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

You can use this template package and add an example test to it
https://github.com/zeromq/zeromq.js/tree/master/test/typings-compatibility/template

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.

None yet

2 participants