forked from SynkraAI/aiox-core
-
Notifications
You must be signed in to change notification settings - Fork 0
100 lines (84 loc) · 3.3 KB
/
Copy pathbob-integration.yml
File metadata and controls
100 lines (84 loc) · 3.3 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
94
95
96
97
98
99
100
name: Bob Integration Tests
# Story 12.11 - CI/CD Pipeline for Bob
# Validates bob-orchestrator and related modules on every PR
on:
pull_request:
branches:
- main
paths:
- '.aiox-core/core/orchestration/**'
- '.aiox-core/core/events/**'
- 'tests/core/orchestration/**'
concurrency:
group: bob-integration-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
contents: read
env:
NODE_VERSION: '20'
jobs:
bob-test:
name: Bob Orchestrator Tests
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Install dependencies
run: npm ci
- name: Run Bob orchestrator tests
run: |
echo "=== Bob Integration Test Suite ==="
npx jest tests/core/orchestration/bob-orchestrator.test.js --verbose
npx jest tests/core/orchestration/terminal-spawner.test.js --verbose
npx jest tests/core/orchestration/lock-manager.test.js --verbose
npx jest tests/core/orchestration/workflow-executor-callbacks.test.js --verbose
- name: Run Bob supporting module tests
run: |
echo "=== Bob Supporting Modules ==="
npx jest tests/core/orchestration/session-state.test.js --verbose
npx jest tests/core/orchestration/message-formatter.test.js --verbose
npx jest tests/core/orchestration/bob-status-writer.test.js --verbose
npx jest tests/core/orchestration/brownfield-handler.test.js --verbose
npx jest tests/core/orchestration/greenfield-handler.test.js --verbose
- name: Test summary
if: always()
run: |
echo "=== Bob Integration Test Summary ==="
echo "Tests executed for:"
echo " - bob-orchestrator (core orchestration)"
echo " - terminal-spawner (process management)"
echo " - lock-manager (concurrency control)"
echo " - workflow-executor-callbacks (execution hooks)"
echo " - session-state (state management)"
echo " - message-formatter (output formatting)"
echo " - bob-status-writer (status persistence)"
echo " - brownfield-handler (existing project support)"
echo " - greenfield-handler (new project support)"
bob-lint:
name: Bob Orchestration Lint
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Install dependencies
run: npm ci
- name: Lint orchestration modules
run: |
echo "=== Linting Bob Orchestration ==="
npx eslint .aiox-core/core/orchestration/ --cache --cache-location .eslintcache --no-error-on-unmatched-pattern || true
npx eslint .aiox-core/core/events/ --cache --cache-location .eslintcache --no-error-on-unmatched-pattern || true
echo "✅ Orchestration lint passed"