-
Notifications
You must be signed in to change notification settings - Fork 0
129 lines (112 loc) · 3.16 KB
/
Copy pathchecks.yml
File metadata and controls
129 lines (112 loc) · 3.16 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
name: Checks
permissions:
contents: read
on:
pull_request:
push:
branches:
- main
- experiments
jobs:
component-checks:
name: ${{ matrix.label }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- label: Runtime safety
command: npm run check:safety
- label: Smoke test
command: npm run smoke
- label: State sync
command: npm run check:state
- label: Memory validation
command: npm run check:memory
- label: Prompt drift
command: npm run check:prompt
- label: Production readiness
command: npm run check:production
- label: Dependency/API drift
command: npm run check:dependencies
- label: Queue consistency
command: npm run check:next
- label: Skill registry
command: npm run check:skills
- label: Document references
command: npm run check:docs
- label: Doctrine drift
command: npm run drift:scan
- label: Connection scan
command: npm run connection:scan
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: "20.18.1"
cache: npm
- name: Setup Python for review-tool safety checks
if: matrix.label == 'Runtime safety'
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install dependencies
run: npm ci
- name: ${{ matrix.label }}
shell: bash
run: |
set +e
set -o pipefail
${{ matrix.command }} 2>&1 | tee check-output.log
status=${PIPESTATUS[0]}
if [ "$status" -ne 0 ]; then
message=$(tail -n 30 check-output.log | tr '\n' ' ' | sed 's/%/%25/g; s/\r/%0D/g')
echo "::error title=${{ matrix.label }}::$message"
fi
exit "$status"
sqlite-checks:
name: SQLite operational store
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: "22"
cache: npm
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install dependencies
run: npm ci
- name: SQLite safety checks
run: npm run check:safety
maintenance-summary:
name: Full maintenance summary
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: "20.18.1"
cache: npm
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install dependencies
run: npm ci
- name: Full maintenance suite
run: npm run maintain