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

Run tests in CI for Node 18, 20, 22 #966

Merged
merged 11 commits into from
Jan 22, 2025
Merged

Run tests in CI for Node 18, 20, 22 #966

merged 11 commits into from
Jan 22, 2025

Conversation

taras
Copy link
Member

@taras taras commented Jan 22, 2025

Motivation

I found a bug when running Effection v4 in Node 18 that was not there in Node 20. I tracked it to toReversed. I wanted to fix it but I found that we don't actually run tests in Node.

Approach

  1. Run tests in Node in CI for 18, 20, and 22.
  2. I had to replace useCommand with tinyexec because Deno.Command doesn't have a shim for Node.

@taras taras requested a review from cowboyd January 22, 2025 03:38
@taras taras changed the title Run all node tests in CI for Node 18, 20, 22 Run tests in CI for Node 18, 20, 22 Jan 22, 2025
tasks/built-test.ts Outdated Show resolved Hide resolved
Copy link
Member

@cowboyd cowboyd left a comment

Choose a reason for hiding this comment

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

This is a major enhancement in our coverage, awesome!

Since we now are running the full test suite including maint.test.ts in NodeJS, I think we can get rid of the test:node task in deno.json and the corresponding .mjs file which just ensured that the main() function worked, but nothing else.

@taras
Copy link
Member Author

taras commented Jan 22, 2025

@cowboyd Repurposed node:test but I removed the node.mjs file.

@taras taras merged commit e0dc265 into v4 Jan 22, 2025
7 checks passed
@taras taras deleted the tm/test-more-node-versions branch January 22, 2025 15:05
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.

2 participants