👷 ci: adds test script

This commit is contained in:
2026-02-03 00:41:09 +07:00
parent b9fe605284
commit fe7a6b119a
2 changed files with 27 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
name: tests
on:
push:
branches:
- "**"
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run tests
run: bun run test
+2 -1
View File
@@ -9,7 +9,8 @@
"scripts": {
"dev": "bun run src/index.tsx",
"build": "bun build src/index.tsx --outdir dist --target node --minify",
"start": "bun run dist/index.js"
"start": "bun run dist/index.js",
"test": "bun test"
},
"keywords": [
"beambox",