@soleri/cli 9.3.0 → 9.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yml +116 -0
- package/package.json +1 -1
- package/vitest.config.ts +2 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
core:
|
|
11
|
+
name: Build & Test Core
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
- uses: actions/setup-node@v4
|
|
16
|
+
with:
|
|
17
|
+
node-version: 20
|
|
18
|
+
- run: npm ci
|
|
19
|
+
- run: npm run build --workspace=@soleri/core
|
|
20
|
+
- run: npm run test --workspace=@soleri/core
|
|
21
|
+
- run: npm run typecheck --workspace=@soleri/core
|
|
22
|
+
|
|
23
|
+
forge:
|
|
24
|
+
name: Build & Test Forge
|
|
25
|
+
needs: core
|
|
26
|
+
runs-on: ubuntu-latest
|
|
27
|
+
steps:
|
|
28
|
+
- uses: actions/checkout@v4
|
|
29
|
+
- uses: actions/setup-node@v4
|
|
30
|
+
with:
|
|
31
|
+
node-version: 20
|
|
32
|
+
- run: npm ci
|
|
33
|
+
- run: npm run build --workspace=@soleri/core
|
|
34
|
+
- run: npm run build --workspace=@soleri/forge
|
|
35
|
+
- run: npm run test --workspace=@soleri/forge
|
|
36
|
+
- run: npm run typecheck --workspace=@soleri/forge
|
|
37
|
+
|
|
38
|
+
cli:
|
|
39
|
+
name: Build & Test CLI
|
|
40
|
+
needs: forge
|
|
41
|
+
runs-on: ubuntu-latest
|
|
42
|
+
steps:
|
|
43
|
+
- uses: actions/checkout@v4
|
|
44
|
+
- uses: actions/setup-node@v4
|
|
45
|
+
with:
|
|
46
|
+
node-version: 20
|
|
47
|
+
- run: npm ci
|
|
48
|
+
- run: npm run build --workspace=@soleri/core
|
|
49
|
+
- run: npm run build --workspace=@soleri/forge
|
|
50
|
+
- run: npm run build --workspace=@soleri/cli
|
|
51
|
+
- run: npm run test --workspace=@soleri/cli
|
|
52
|
+
- run: npm run typecheck --workspace=@soleri/cli
|
|
53
|
+
|
|
54
|
+
create-soleri:
|
|
55
|
+
name: Build create-soleri
|
|
56
|
+
needs: cli
|
|
57
|
+
runs-on: ubuntu-latest
|
|
58
|
+
steps:
|
|
59
|
+
- uses: actions/checkout@v4
|
|
60
|
+
- uses: actions/setup-node@v4
|
|
61
|
+
with:
|
|
62
|
+
node-version: 20
|
|
63
|
+
- run: npm ci
|
|
64
|
+
- run: npm run build --workspace=@soleri/core
|
|
65
|
+
- run: npm run build --workspace=@soleri/forge
|
|
66
|
+
- run: npm run build --workspace=@soleri/cli
|
|
67
|
+
- run: npm run build --workspace=create-soleri
|
|
68
|
+
- run: npm run typecheck --workspace=create-soleri
|
|
69
|
+
|
|
70
|
+
quality:
|
|
71
|
+
name: Code Quality
|
|
72
|
+
runs-on: ubuntu-latest
|
|
73
|
+
steps:
|
|
74
|
+
- uses: actions/checkout@v4
|
|
75
|
+
- uses: actions/setup-node@v4
|
|
76
|
+
with:
|
|
77
|
+
node-version: 20
|
|
78
|
+
- run: npm ci
|
|
79
|
+
|
|
80
|
+
- name: Lint (oxlint)
|
|
81
|
+
run: npm run lint
|
|
82
|
+
|
|
83
|
+
- name: Format check (oxfmt)
|
|
84
|
+
run: npm run format:check
|
|
85
|
+
|
|
86
|
+
- name: Secret scan
|
|
87
|
+
run: npm run secrets:check
|
|
88
|
+
|
|
89
|
+
- name: Markdown lint
|
|
90
|
+
run: npm run lint:md
|
|
91
|
+
|
|
92
|
+
- name: Spell check
|
|
93
|
+
run: npm run lint:spell
|
|
94
|
+
|
|
95
|
+
- name: Dead code (knip)
|
|
96
|
+
run: npm run deadcode:knip
|
|
97
|
+
|
|
98
|
+
website:
|
|
99
|
+
name: Validate Website Content
|
|
100
|
+
runs-on: ubuntu-latest
|
|
101
|
+
steps:
|
|
102
|
+
- uses: actions/checkout@v4
|
|
103
|
+
|
|
104
|
+
- name: Validate i18n content files exist
|
|
105
|
+
run: |
|
|
106
|
+
for file in home getting-started how-it-works personas teams; do
|
|
107
|
+
test -f "src/i18n/pages/${file}.ts" || { echo "Missing src/i18n/pages/${file}.ts"; exit 1; }
|
|
108
|
+
done
|
|
109
|
+
echo "All i18n content files present."
|
|
110
|
+
|
|
111
|
+
- name: Validate docs exist
|
|
112
|
+
run: |
|
|
113
|
+
for file in getting-started your-agent capabilities extending cli-reference; do
|
|
114
|
+
test -f "src/content/docs/docs/${file}.md" || { echo "Missing docs/${file}.md"; exit 1; }
|
|
115
|
+
done
|
|
116
|
+
echo "All doc files present."
|
package/package.json
CHANGED