Skip to content

Commit c4b3052

Browse files
committed
ci: bun auto builds
1 parent 899dd77 commit c4b3052

File tree

8 files changed

+44
-1
lines changed

8 files changed

+44
-1
lines changed

.github/workflows/build.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Build Checks for Pilot
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Setup Bun Runtime
14+
uses: antongolub/action-setup-bun@v1
15+
- run: bun i
16+
- run: bun run build
17+
- run: du -sh

apps/cli/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,6 @@ dist
170170

171171
# IntelliJ based IDEs
172172
.idea
173+
174+
# Custom
175+
tsconfig.tsbuildinfo

apps/cli/package.json

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"name": "cli",
33
"module": "index.ts",
44
"type": "module",
5+
"scripts": {
6+
"build": "tsc",
7+
"dev": "bun run index.ts"
8+
},
59
"devDependencies": {
610
"bun-types": "latest"
711
},

apps/worker/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,6 @@ dist
170170

171171
# IntelliJ based IDEs
172172
.idea
173+
174+
# Custom
175+
tsconfig.tsbuildinfo

bun.lockb

424 Bytes
Binary file not shown.

package.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,14 @@
55
"workspaces": [
66
"packages/*",
77
"apps/*"
8-
]
8+
],
9+
"scripts": {
10+
"build": "bun run build:cli && bun run build:worker && bun run build:core",
11+
"build:cli": "cd apps/cli && bun run build",
12+
"build:worker": "cd apps/worker && bun run build",
13+
"build:core": "cd packages/core && bun run build"
14+
},
15+
"dependencies": {
16+
"typescript": "^5.0.0"
17+
}
918
}

packages/core/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,6 @@ dist
170170

171171
# IntelliJ based IDEs
172172
.idea
173+
174+
# Custom
175+
tsconfig.tsbuildinfo

packages/core/package.json

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"name": "core",
33
"module": "index.ts",
44
"type": "module",
5+
"scripts": {
6+
"build": "tsc",
7+
"dev": "bun run index.ts"
8+
},
59
"devDependencies": {
610
"bun-types": "latest"
711
},

0 commit comments

Comments
 (0)