-
Notifications
You must be signed in to change notification settings - Fork 1
83 lines (66 loc) · 2.79 KB
/
Copy pathquality.yml
File metadata and controls
83 lines (66 loc) · 2.79 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
name: quality
on:
push:
pull_request:
jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Go tests
run: go test ./...
- name: Build CLI
run: go build -o skill-harness ./cmd/skill-harness
- name: JSON integrity
run: node -e "JSON.parse(require('fs').readFileSync('scripts/dependencies.json','utf8')); JSON.parse(require('fs').readFileSync('scripts/agent_loadouts.json','utf8')); JSON.parse(require('fs').readFileSync('docs/artifacts/artifacts.manifest.json','utf8'));"
- name: Python syntax
run: python -m py_compile $(git ls-files 'scripts/*.py')
- name: Suite drift
run: python scripts/check_suite_drift.py --check
- name: External skill intake fixtures
run: npm run intake:check
- name: Loop helper fixtures
run: npm run loop:check
- name: Model review and artifact policy
run: npm run artifacts:check
- name: Hermetic setup-project smoke
run: |
tmp_home="$(mktemp -d)"
tmp_repo="$(mktemp -d)"
mkdir -p "$tmp_home/localappdata"
printf '{\n "name": "smoke-repo",\n "private": true\n}\n' > "$tmp_repo/package.json"
HOME="$tmp_home" USERPROFILE="$tmp_home" LOCALAPPDATA="$tmp_home/localappdata" \
./skill-harness setup-project \
--dir "$tmp_repo" \
--package-manager npm \
--skip-noslop \
--skip-agent-docs \
--skip-beads \
--skip-claude-settings \
--developer-artifacts-profile cli \
--modeling-mode uml-first
test -f "$tmp_repo/.skill-harness/setup-proof.json"
test -f "$tmp_repo/scripts/generate-artifact-review.mjs"
test -f "$tmp_repo/scripts/generate-model-review.mjs"
(cd "$tmp_repo" && node scripts/generate-artifact-review.mjs)
(cd "$tmp_repo" && node scripts/generate-artifact-review.mjs --check)
(cd "$tmp_repo" && node scripts/generate-model-review.mjs)
(cd "$tmp_repo" && node scripts/generate-model-review.mjs --check)
(cd "$tmp_repo" && node scripts/check-artifact-manifest.mjs)
(cd "$tmp_repo" && node scripts/check-model-artifact-policy.mjs)
(cd "$tmp_repo" && node scripts/check-model-inventory.mjs)
(cd "$tmp_repo" && node scripts/check-artifact-html-policy.mjs)
- uses: actions/upload-artifact@v4
if: always()
with:
name: model-review-html
path: generated/review/models/