Skip to content

Commit

Permalink
Add: Bun test
Browse files Browse the repository at this point in the history
  • Loading branch information
petamoriken committed Jul 24, 2022
1 parent aa3bb74 commit e4ca281
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@

## Install

### Node.js

```console
npm install @petamoriken/float16
```
Expand All @@ -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
Expand Down

0 comments on commit e4ca281

Please sign in to comment.