mirror of
https://github.com/YuzuZensai/beamboxctl.git
synced 2026-07-21 20:42:19 +00:00
👷 ci: adds test script
This commit is contained in:
@@ -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
@@ -9,7 +9,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "bun run src/index.tsx",
|
"dev": "bun run src/index.tsx",
|
||||||
"build": "bun build src/index.tsx --outdir dist --target node --minify",
|
"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": [
|
"keywords": [
|
||||||
"beambox",
|
"beambox",
|
||||||
|
|||||||
Reference in New Issue
Block a user