Skip to content

Commit fd4daef

Browse files
committed
chore: verify chat build on CI
1 parent eba7a21 commit fd4daef

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/chat.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Chat
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- "chat/**"
8+
- "Makefile"
9+
pull_request:
10+
branches: [main]
11+
paths:
12+
- "chat/**"
13+
- "Makefile"
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Setup Bun
22+
uses: oven-sh/setup-bun@v2
23+
with:
24+
bun-version: latest
25+
26+
- name: Install chat dependencies
27+
run: |
28+
cd chat
29+
bun install
30+
31+
- name: Build chat
32+
run: |
33+
cd chat
34+
BASE_PATH=/magic-base-path-placeholder bun run build
35+
36+
- name: Verify build output
37+
run: |
38+
if [ ! -d "chat/out" ]; then
39+
echo "Build failed: chat/out directory not found"
40+
exit 1
41+
fi
42+
echo "Chat build completed successfully"
43+
ls -la chat/out/

0 commit comments

Comments
 (0)