Skip to content

Commit 9663c5c

Browse files
authored
Merge pull request #6 from arthurfiorette/patch-1
Add github action to run bun test
2 parents 8f26fc4 + 1c32992 commit 9663c5c

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'npm'
4+
directory: './'
5+
schedule:
6+
interval: 'daily'
7+
8+
- package-ecosystem: 'github-actions'
9+
directory: './'
10+
schedule:
11+
interval: 'daily'

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Code CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
name: Build and test code
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Setup bun
17+
uses: oven-sh/setup-bun@v1
18+
with:
19+
bun-version: latest
20+
21+
- name: Install packages
22+
run: bun install
23+
24+
- name: Build code
25+
run: bun run build
26+
27+
- name: Test
28+
run: bun run test

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"license": "MIT",
2828
"scripts": {
2929
"dev": "bun run --hot example/index.ts",
30-
"test": "bun wiptest && npm run test:node",
30+
"test": "bun test && npm run test:node",
3131
"test:node": "npm install --prefix ./test/node/cjs/ && npm install --prefix ./test/node/esm/ && node ./test/node/cjs/index.js && node ./test/node/esm/index.js",
3232
"build": "rimraf dist && tsc --project tsconfig.esm.json && tsc --project tsconfig.cjs.json",
3333
"release": "npm run build && npm run test && npm publish --access public"

0 commit comments

Comments
 (0)