-
Notifications
You must be signed in to change notification settings - Fork 158
ci: add Windows to test matrix and fix cross-platform compatibility #1361
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
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
37137f6
feat: add mongodb-memory-server for cross-platform testing
fabiovincenzi b362e46
ci: add Windows to test matrix and use mongodb-memory-server
fabiovincenzi d784b2b
fix: replace bash script with Node.js for cross-platform build
fabiovincenzi 0c602de
fix: add cross-env for Windows-compatible test scripts
fabiovincenzi edc03b5
fix: make tests cross-platform compatible for Windows
fabiovincenzi d57d31d
fix: improve Windows compatibility for tests
fabiovincenzi c4aa15e
fix: enable Windows Developer Mode for npm symlinks in CI
fabiovincenzi d770edd
test: debug errors
fabiovincenzi 7eed120
test: debug errors
fabiovincenzi e746e75
fix: use file:// URLs for Windows ESM loader compatibility in plugin …
fabiovincenzi 05bd573
test: skip cypress tests for windows
fabiovincenzi 30122d4
fix: increase test timeout for windows
fabiovincenzi d20413b
fix: remove unnecessary MongoDB dependency from tests
fabiovincenzi 4343773
fix: ignore cross-env unused dependency
fabiovincenzi 5193d1e
Merge branch 'main' into windows-failing-tests
fabiovincenzi 7262514
Merge branch 'main' into windows-failing-tests
fabiovincenzi 636e22f
Merge branch 'main' into windows-failing-tests
fabiovincenzi 7450215
chore: address PR review feedback
fabiovincenzi 77ba9b3
chore: merge remote windows-failing-tests
fabiovincenzi ae07d48
ci: restructure CI with MongoDB matrix for Ubuntu and single Windows …
fabiovincenzi 5fe3163
Merge branch 'main' into windows-failing-tests
fabiovincenzi 65c45bd
Merge branch 'main' into windows-failing-tests
fabiovincenzi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| #!/usr/bin/env node | ||
|
|
||
| const fs = require('fs'); | ||
| const path = require('path'); | ||
|
|
||
| const distIndexPath = path.join(__dirname, '..', 'dist', 'index.js'); | ||
|
|
||
| if (fs.existsSync(distIndexPath)) { | ||
| let content = fs.readFileSync(distIndexPath, 'utf-8'); | ||
| // Replace tsx with node in the shebang (first line) | ||
| content = content.replace(/^#!.*tsx/, '#!/usr/bin/env node'); | ||
| fs.writeFileSync(distIndexPath, content); | ||
| console.log('Fixed shebang in dist/index.js'); | ||
| } else { | ||
| console.log('dist/index.js not found, skipping shebang fix'); | ||
| } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.