-
Notifications
You must be signed in to change notification settings - Fork 22
46 lines (39 loc) · 1.12 KB
/
ci-opencode-plugin.yml
File metadata and controls
46 lines (39 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CI - OpenCode Plugin
on:
pull_request:
paths:
- 'cupcake-plugins/opencode/**'
- '.github/workflows/ci-opencode-plugin.yml'
push:
branches: [main]
paths:
- 'cupcake-plugins/opencode/**'
- '.github/workflows/ci-opencode-plugin.yml'
jobs:
build:
name: Build & Type Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
working-directory: cupcake-plugins/opencode
run: bun install
- name: Type check
working-directory: cupcake-plugins/opencode
run: bun run typecheck
- name: Build
working-directory: cupcake-plugins/opencode
run: bun run build
- name: Verify output exists
working-directory: cupcake-plugins/opencode
run: |
if [ ! -f dist/cupcake.js ]; then
echo "Error: dist/cupcake.js not found"
exit 1
fi
echo "Build output size: $(wc -c < dist/cupcake.js) bytes"