Skip to content

Conversation

Electroid
Copy link
Owner

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.

5 participants