-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.31 KB
/
Copy pathci.yml
File metadata and controls
46 lines (43 loc) · 1.31 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
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: ['24', '26']
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- run: npm ci
- run: npm run typecheck
- run: npm test
- run: npm run build
smoke:
# End-to-end smoke test: drive the actual `robotnet` binary through a
# `network start` → `admin agent create` → `admin agent list` →
# `network status` → `network stop` lifecycle against the local
# operator. Catches wiring regressions that the unit tests miss
# (commander integration, supervisor lifecycle, real HTTP roundtrip
# to the spawned operator). Runs on Linux only — Windows process
# supervision quirks (signals, taskkill semantics) are out of scope
# for a quick CI smoke check; the Linux run is the highest-signal
# one.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: '24'
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm run smoke