Skip to content

Commit

Permalink
Merge pull request #6 from arthurfiorette/patch-1
Browse files Browse the repository at this point in the history
Add github action to run bun test
  • Loading branch information
SaltyAom authored Sep 28, 2023
2 parents 8f26fc4 + 1c32992 commit 9663c5c
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: 'npm'
directory: './'
schedule:
interval: 'daily'

- package-ecosystem: 'github-actions'
directory: './'
schedule:
interval: 'daily'
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Code CI

on:
push:
pull_request:

jobs:
build:
name: Build and test code
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Install packages
run: bun install

- name: Build code
run: bun run build

- name: Test
run: bun run test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"license": "MIT",
"scripts": {
"dev": "bun run --hot example/index.ts",
"test": "bun wiptest && npm run test:node",
"test": "bun test && npm run test:node",
"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",
"build": "rimraf dist && tsc --project tsconfig.esm.json && tsc --project tsconfig.cjs.json",
"release": "npm run build && npm run test && npm publish --access public"
Expand Down

0 comments on commit 9663c5c

Please sign in to comment.