Skip to content

Commit

Permalink
add bun to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Mar 16, 2024
1 parent e9327ab commit 28704a9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ jobs:
fail-fast: false
matrix:
node: [18, 20]
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest]

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{matrix.node}}
- uses: oven-sh/setup-bun@v1
with:
node-version: ${{matrix.node}}
bun-version: ${{matrix.node}}
- run: make lint test
- run: bun test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
/npm-debug.log*
/yarn-error.log
/yarn.lock
/bun.lockb
/__snapshots__
.DS_Store

5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ test: node_modules build
test-update: node_modules build
npx vitest -u

.PHONY: test
test-bun: node_modules build
bun test
rm -rf __snapshots__

.PHONY: build
build: $(DST)

Expand Down
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,14 @@

# Usage

`bun` and `node` are supported and tested. For bun, replace `npx` with `bunx`.

```bash
# check for updates
npx updates

# update package.json and install new dependencies
npx updates -u && npm i
```

## Bun and Deno

```bash
bunx updates
deno run -A npm:updates
npx updates -u && bun i
```

## Options
Expand Down

0 comments on commit 28704a9

Please sign in to comment.