-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest-workflow.sh
More file actions
executable file
·52 lines (41 loc) · 1.23 KB
/
test-workflow.sh
File metadata and controls
executable file
·52 lines (41 loc) · 1.23 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
#!/usr/bin/env bash
set -e
echo "=== Testing Conduct v0.1 Workflow ==="
echo
# Show version
echo "1. Version check:"
./conduct-v01.sh --version
echo
# Health check
echo "2. Health check:"
./conduct-v01.sh health
echo
# Create a test package
echo "3. Creating test package..."
cat > _conduct/operations/create-package.sql << 'SQL'
INSERT INTO package (slug, name, paths)
VALUES ('test-pkg', 'Test Package', '["src/test", "lib/test"]');
SQL
./conduct-v01.sh save _conduct/operations/create-package.sql
echo
# Create a test feature
echo "4. Creating test feature..."
cat > _conduct/operations/create-feature.sql << 'SQL'
INSERT INTO feature (slug, name, package_id, paths, status)
VALUES ('auth-feature', 'Authentication Feature', 1, '["src/auth"]', 'active');
SQL
./conduct-v01.sh save _conduct/operations/create-feature.sql
echo
# Create a test spec
echo "5. Creating test spec..."
cat > _conduct/operations/create-spec.sql << 'SQL'
INSERT INTO spec (id, location, status, loe, agent)
VALUES ('test-1', '_conduct/specs/test-1.spec.md', 'pending', 'simple', 'claude');
SQL
./conduct-v01.sh save _conduct/operations/create-spec.sql
echo
# List everything
echo "6. Listing all memory:"
./conduct-v01.sh list
echo
echo "=== Workflow test complete! ==="