-
Notifications
You must be signed in to change notification settings - Fork 179
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
Fix Windows CI via node+jest (as alternative to bun) #155
Conversation
Wow. This is huge! Seems a lot of work as well. Thanks! |
Hmm.. Looks like there are some conflicts. Probably relates to my recent (massive) Nuemark push. Also noticed that the front page README shows an alarming red Tests Failed message. I'm posting a link to Hacker News still.. |
2ce6b77
to
cdbd27e
Compare
Conflicts are resolved. And I've introduced |
This is really an important test suite addition. But I can see one test failing so I didn't yet merge. Thanks |
Latest conflicts and failed tests are fixed now 😂 |
Btw, I found the error messages from from |
Awesome. Thank you! |
@fritx any idea why the test runner fails with this error currently? There is that ugly, red "failing" flag prominently visible again. Hurts my eyes. Thanks!! |
The tests did run on my end without any problems (apart from the node version warning): https://github.com/nobkd/nue/actions/runs/7673174907 It looks a little like the workflow run was accidentally cancelled on this repo... At least the second attempt: The first attempt failed, probably because the correct package version was not uploaded, maybe? (and therefore missing from the package registry?) 🤷 |
Looks like it is because the Test-workflow runs right after the nuemark@0.1.1 commits (while it was not yet published to npmjs registry). So Solutions:
|
@fritx I re-run the workflow and now it passed! Thank you. Integrating npm-publish would be awesome. Pushing a new version is a bit of a stress right now since I'm not very confident that everything goes well. Monorepos and deploy automation are certainly my weak areas in terms of experience and motivation. I just made you a Nue collaborator with Triage permission. Is that enough? btw: For some reasons I'm not notified for replies to issues. Only new ones. This (and lazyness) is why my responses take time. Need to update notification settings. @nobkd I invited you also with Triage permission. You can both now merge pull requests among other things. Your contributions have been excellent and I have full trust that they are aligned with the guidelines. Thanks guys! |
Just, so you know @tipiirai I think, the triage role only allows reviewing. It says on open PR's, that you need Yes, Note Read: Recommended for non-code contributors who want to view or discuss your project Triage: Recommended for contributors who need to proactively manage issues, discussions, and pull requests without write access Write: Recommended for contributors who actively push to your project Maintain: Recommended for project managers who need to manage the repository without access to sensitive or destructive actions Admin: Recommended for people who need full access to the project, including sensitive and destructive actions like managing security or deleting a repository |
#154 can not be re-opened, so created a new PR with less diff change:
Goal:
Add and fix CI for Windows
Problem:
bun
is not availble in Windows currently (ref: oven-sh/bun#8045, oven-sh/bun#7991).Tried with both
setup-bun
(docs, failed) andpowershell -c "irm bun.sh/install.ps1|iex"
(docs, failed)Solution:
For Windows, switching to
npm install
+jest
as alternative tobun install
+bun test
.Details:
is_browser
detectionses-main
to detect and prevent unexpected call ofgetArgs
(throwing on the wrong args)jest-extended
to eliminate theexpect.*
matchers gap betweenbun test
andjest
toMatchPath
path.normalize
orgetPosixPath