From e4ca281b0c7ed8f79dffdded9d2d393e9cca2141 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Mon, 25 Jul 2022 00:02:25 +0900 Subject: [PATCH] Add: Bun test --- .github/workflows/test.yml | 17 +++++++++++++++++ README.md | 10 +++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f4a5359b..86caf123 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -53,6 +53,23 @@ jobs: - run: deno run test/src/index.mjs + src_test_bun: + name: ES Modules Test (Bun) + runs-on: ubuntu-latest + + steps: + - if: github.event_name != 'pull_request_target' + uses: actions/checkout@v2 + + - if: github.event_name == 'pull_request_target' + uses: actions/checkout@v2 + with: + ref: ${{ github.event.pull_request.head.sha }} + + - run: curl -fsSL https://bun.sh/install | bash + + - run: ~/.bun/bin/bun test/src/index.mjs + lib_test: name: Unit Test (Node.js) runs-on: ubuntu-latest diff --git a/README.md b/README.md index dd86874a..c30de111 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,8 @@ ## Install +### Node.js + ```console npm install @petamoriken/float16 ``` @@ -46,9 +48,15 @@ npm install @petamoriken/float16 yarn add @petamoriken/float16 ``` +### Bun + +```console +bun add @petamoriken/float16 +``` + ## Import -### Node.js or Bundler (webpack, rollup.js, esbuild, etc) +### Node.js, Bun or Bundler (webpack, rollup.js, esbuild, etc) ```js // ES Modules