-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.48 KB
/
Copy pathci.yml
File metadata and controls
51 lines (43 loc) · 1.48 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
name: ci
on:
push:
branches: [main, master]
pull_request:
jobs:
verify:
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
run: bun install --frozen-lockfile || bun install
- name: Typecheck
run: bun run typecheck
- name: CLI smoke
run: |
bun run src/index.ts --version
bun run src/index.ts --help
bun run src/index.ts --banner
bun run src/index.ts --list-models
- name: Integration smoke tests
run: bun run test:smoke
- name: Ensure no accidental home dependency for packaged defaults
run: |
rm -rf "$HOME/.arrowcode"
bun -e '
import { listTemplates } from "./src/templates/catalog.ts";
import { loadAgentPersonality } from "./src/agents/personalities.ts";
import { existsSync } from "fs";
import { join } from "path";
import { homedir } from "os";
const t = listTemplates();
if (t.length < 12) throw new Error("templates: " + t.length);
const p = loadAgentPersonality("orchestrator");
if (p.length < 20) throw new Error("personality empty");
if (existsSync(join(homedir(), ".arrowcode"))) throw new Error("home created");
console.log("defaults-ok", t.length);
'