-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce CliCoreBase.ts to remove all Node repl dependencies, allowi…
…ng future REPL to be built without using Node REPL. Small change to stringify so that Timer objects are recognized in Bun. Add couple Bun detectors in tests to work around Jest specialties that are not availavle in Bun. Add github actions so that all tests run on Bun as well as node.
- Loading branch information
1 parent
537da54
commit 9a5d35a
Showing
14 changed files
with
856 additions
and
1,337 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* | ||
|
Oops, something went wrong.