-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (79 loc) · 2.4 KB
/
ci.yml
File metadata and controls
93 lines (79 loc) · 2.4 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: ci
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout plugin
uses: actions/checkout@v4
with:
path: chio-open-code-plugin
- name: Checkout chio-bridge
uses: actions/checkout@v4
with:
repository: owner/chio-bridge
path: chio-bridge
ref: main
- name: Checkout chio-test-harness
uses: actions/checkout@v4
with:
repository: owner/chio-test-harness
path: chio-test-harness
ref: main
- name: Checkout arc (chio source)
uses: actions/checkout@v4
with:
repository: owner/arc
path: arc
ref: main
- name: Setup chio
uses: owner/chio-ci-actions/setup-chio@v0.1.0
with:
mode: build
arc-path: arc
- name: Build chio-bridge
working-directory: chio-bridge
run: |
bun install --frozen-lockfile
bun run build
- name: Install plugin deps
working-directory: chio-open-code-plugin
run: bun install --frozen-lockfile
- name: Typecheck
working-directory: chio-open-code-plugin
run: bun run typecheck || echo "typecheck non-blocking in Wave 5.1"
- name: Build plugin
working-directory: chio-open-code-plugin
run: bun run build
- name: Unit tests
working-directory: chio-open-code-plugin
run: bun run test
- name: Install hello-mcp deps (for harness)
working-directory: chio-test-harness/hello-mcp
run: bun install --frozen-lockfile
- name: Smoke (direct-plugin-invocation mode — no host required)
working-directory: chio-open-code-plugin
env:
CHIO_SMOKE_HARNESS_SRC: ${{ github.workspace }}/chio-test-harness
run: |
if [[ -x ./smoke.sh ]]; then
./smoke.sh || {
code=$?
echo "::warning::smoke.sh exited ${code} (direct-invocation smoke is WIP in CI)"
exit 0
}
else
echo "no smoke.sh"
fi
- name: Upload smoke results
if: always()
uses: actions/upload-artifact@v4
with:
name: smoke-results
path: chio-open-code-plugin/smoke-results
if-no-files-found: ignore