Skip to content

Commit fe7a6b1

Browse files
committed
👷 ci: adds test script
1 parent b9fe605 commit fe7a6b1

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Bun
17+
uses: oven-sh/setup-bun@v2
18+
with:
19+
bun-version: latest
20+
21+
- name: Install dependencies
22+
run: bun install --frozen-lockfile
23+
24+
- name: Run tests
25+
run: bun run test

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"scripts": {
1010
"dev": "bun run src/index.tsx",
1111
"build": "bun build src/index.tsx --outdir dist --target node --minify",
12-
"start": "bun run dist/index.js"
12+
"start": "bun run dist/index.js",
13+
"test": "bun test"
1314
},
1415
"keywords": [
1516
"beambox",

0 commit comments

Comments
 (0)