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

[chores] Make CI 1 minute faster, switch from yarn to bun #1556

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Electroid
Copy link

@Electroid Electroid commented Feb 20, 2025

This makes CI 39% faster, by switching from yarn install to bun install. This saves 1 minute of time for each GitHub Action run.

Yarn - 2m 51s Bun - 1m 44s
Screenshot 2025-02-20 at 1 19 07 PM Screenshot 2025-02-20 at 1 20 54 PM

This does not change the code or tests to run using Bun, as a runtime, it still uses Node.js and Jest. In the future, Bun could be used for tests and the standalone executables too, but there are some bugs that prevent that.

I also discovered a few bugs in Bun and opened issues in their repository. In the interim, there were trivial workarounds to make them work.

I tested your CI as much as I could, on a fork, without access to secrets. Happy to assist if you have any questions or thoughts!

@Electroid Electroid requested review from a team as code owners February 20, 2025 21:40
@Electroid Electroid changed the title [chores] Switch package manager from Yarn to Bun [chores] Make CI 1 minute faster, switch from yarn to bun Feb 20, 2025
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