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

Bun support #80

Merged
merged 3 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Jest Tests
name: Run Jest Tests on Node.js

on:
push:
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/test_bun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Run Jest Tests on Bun.js

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test-bun:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Apache Pulsar
uses: reugn/github-action-pulsar@v1

- name: Install Bun
run: |
curl https://bun.sh/install | bash
echo "$HOME/.bun/bin" >> $GITHUB_PATH

- name: Verify Bun Installation
run: bun --version

- name: Install dependencies with Bun
run: bun install

- name: Run Bun tests
run: bun run test:bun

- name: Upload Bun test logs on failure
if: failure()
uses: actions/upload-artifact@v3
with:
name: bun-test-logs
path: ./bun-test-logs/*

Loading
Loading