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

Test CI with both Node.js and Bun #352

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Electroid
Copy link

This adds support to run tests in CI using Bun, and keeps Node.js support. It makes running tests 35% faster.

Bun - 11s Node - 17s
Screenshot 2025-02-20 at 3 32 02 PM Screenshot 2025-02-20 at 3 32 49 PM

Since Bun supports Jest & Vitest, you'll notice there are no code changes! It just works. (and I did test the Github Action on a fork to verify that it indeed does work)

This also changes npm install to bun install, but just in CI. Developers can continue to use npm, yarn, etc.

I also updated various GitHub Action steps to use the newer versions (e.g. actions/checkout@v2 -> actions/checkout@v4)

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.

1 participant