add bun to ci

This commit is contained in:
silverwind 2024-03-16 04:35:45 +01:00
parent e9327abafc
commit 096b16ed1a
Signed by untrusted user: silverwind
GPG Key ID: 2E62B41C93869443
4 changed files with 16 additions and 8 deletions

@ -7,7 +7,8 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
node: [18, 20] node: [18, 20]
os: [ubuntu-latest, macos-latest, windows-latest] bun: [latest]
os: [ubuntu-latest, macos-latest]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -15,4 +16,8 @@ jobs:
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: ${{matrix.node}} node-version: ${{matrix.node}}
- uses: oven-sh/setup-bun@v1
with:
bun-version: ${{matrix.bun}}
- run: make lint test - run: make lint test
- run: bun test

3
.gitignore vendored

@ -4,4 +4,7 @@
/npm-debug.log* /npm-debug.log*
/yarn-error.log /yarn-error.log
/yarn.lock /yarn.lock
/bun.lockb
/__snapshots__
.DS_Store .DS_Store

@ -24,6 +24,11 @@ test: node_modules build
test-update: node_modules build test-update: node_modules build
npx vitest -u npx vitest -u
.PHONY: test
test-bun: node_modules build
bun test
rm -rf __snapshots__
.PHONY: build .PHONY: build
build: $(DST) build: $(DST)

@ -7,6 +7,8 @@
# Usage # Usage
`bun` and `node` are supported and tested. For bun, replace `npx` with `bunx` and `npm` with `bun`.
```bash ```bash
# check for updates # check for updates
npx updates npx updates
@ -15,13 +17,6 @@ npx updates
npx updates -u && npm i npx updates -u && npm i
``` ```
## Bun and Deno
```bash
bunx updates
deno run -A npm:updates
```
## Options ## Options
See `--help`. Options that take multiple arguments can take them either via comma-separated value or by specifying the option multiple times. See `--help`. Options that take multiple arguments can take them either via comma-separated value or by specifying the option multiple times.