Skip to content

Commit 5a00911

Browse files
binghui.dbhelrrrrrrr
authored andcommitted
chore: utoo ci
1 parent 4a1fba8 commit 5a00911

File tree

6 files changed

+261
-16650
lines changed

6 files changed

+261
-16650
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -27,35 +27,34 @@ jobs:
2727
- name: Checkout repository
2828
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
2929

30-
- name: Install pnpm
31-
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
30+
- name: Install utoo
31+
uses: utooland/setup-utoo@v1
3232

3333
- name: Set up Node.js
3434
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
3535
with:
3636
node-version: '24'
37-
cache: 'pnpm'
3837

3938
- name: Install dependencies
40-
run: pnpm install --frozen-lockfile
39+
run: ut install
4140

4241
- name: Run lint
43-
run: pnpm run lint
42+
run: ut lint
4443

45-
- name: Check dedupe
46-
run: pnpm dedupe --check
44+
# - name: Check dedupe
45+
# run: pnpm dedupe --check
4746

4847
- name: Run typecheck
49-
run: pnpm run typecheck
48+
run: ut typecheck
5049

5150
- name: Run format check
52-
run: pnpm run fmtcheck
51+
run: ut fmtcheck
5352

5453
- name: Run build
55-
run: pnpm run build
54+
run: ut build
5655

5756
- name: Run site build
58-
run: pnpm run site:build
57+
run: ut site:build
5958

6059
test:
6160
strategy:
@@ -157,25 +156,24 @@ jobs:
157156
# & mysqladmin -u root password root
158157
& mysql -uroot -e "CREATE DATABASE IF NOT EXISTS test;"
159158
160-
- name: Install pnpm
161-
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
159+
- name: Install utoo
160+
uses: utooland/setup-utoo@v1
162161

163162
- name: Set up Node.js
164163
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
165164
with:
166165
node-version: ${{ matrix.node }}
167-
cache: 'pnpm'
168166

169167
- name: Install dependencies
170-
run: pnpm install --frozen-lockfile
168+
run: ut install
171169

172170
- name: Run tests
173-
run: pnpm run ci --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
171+
run: ut ci --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
174172

175173
- name: Run example tests
176174
if: ${{ matrix.node != '20' && matrix.os != 'windows-latest' }}
177175
run: |
178-
pnpm run example:test:all
176+
ut example:test:all
179177
180178
- name: Code Coverage
181179
# skip on windows, it will hangup on codecov
@@ -205,22 +203,21 @@ jobs:
205203
- name: Checkout repository
206204
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
207205

208-
- name: Install pnpm
209-
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
206+
- name: Install utoo
207+
uses: utooland/setup-utoo@v1
210208

211209
- name: Set up Node.js
212210
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
213211
with:
214212
node-version: ${{ matrix.node }}
215-
cache: 'pnpm'
216213

217214
- name: Install dependencies
218-
run: pnpm install --frozen-lockfile
215+
run: ut install
219216

220217
- name: Run tests
221218
run: |
222-
pnpm build --workspace ./tools/egg-bin
223-
pnpm run --filter ./tools/egg-bin ci
219+
ut build --workspace ./tools/egg-bin
220+
ut ci --workspace ./tools/egg-bin
224221
env:
225222
# https://github.com/jamiebuilds/ci-parallel-vars
226223
CI_NODE_INDEX: ${{ matrix.shardIndex }}
@@ -251,22 +248,21 @@ jobs:
251248
- name: Checkout repository
252249
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
253250

254-
- name: Install pnpm
255-
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
251+
- name: Install utoo
252+
uses: utooland/setup-utoo@v1
256253

257254
- name: Set up Node.js
258255
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
259256
with:
260257
node-version: ${{ matrix.node }}
261-
cache: 'pnpm'
262258

263259
- name: Install dependencies
264-
run: pnpm install --frozen-lockfile
260+
run: ut install
265261

266262
- name: Run tests
267263
run: |
268-
pnpm build
269-
pnpm run --filter=./tools/scripts ci
264+
ut build
265+
ut ci --workspace ./tools/scripts
270266
271267
- name: Code Coverage
272268
if: ${{ matrix.os != 'windows-latest' }}

.github/workflows/e2e-test.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,24 +119,23 @@ jobs:
119119
with:
120120
ecosystem-ci-project: ${{ matrix.project.name }}
121121

122-
- name: Install pnpm
123-
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
122+
- name: Install utoo
123+
uses: utooland/setup-utoo@v1
124124

125125
- name: Set up Node.js
126126
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
127127
with:
128128
node-version: ${{ matrix.project.node-version }}
129-
cache: 'pnpm'
130129

131130
- name: Install dependencies
132-
run: pnpm install --frozen-lockfile
131+
run: ut install
133132

134133
- name: Build all packages
135-
run: pnpm build
134+
run: ut build
136135

137-
- name: Pack packages into tgz
138-
run: |
139-
pnpm -r pack
136+
# - name: Pack packages into tgz
137+
# run: |
138+
# pnpm -r pack
140139

141140
- name: Override dependencies from tgz in ${{ matrix.project.name }}
142141
working-directory: ecosystem-ci/${{ matrix.project.name }}

.utoo.toml

Lines changed: 215 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,215 @@
1+
[catalog]
2+
"@clack/prompts" = "^0.11.0"
3+
"@eggjs/compressible" = "^3.0.0"
4+
"@eggjs/cookies" = "^3.1.0"
5+
"@eggjs/ip" = "^2.1.0"
6+
"@eggjs/rds" = "^1.5.0"
7+
"@eggjs/redis" = "^3.0.0"
8+
"@eggjs/scripts" = "^4.0.0"
9+
"@fengmk2/ps-tree" = "^2.0.1"
10+
"@oclif/core" = "^4.2.0"
11+
"@oxc-node/core" = "^0.0.35"
12+
typebox = "^1.0.65"
13+
"@swc-node/register" = "^1.11.1"
14+
"@swc/core" = "^1.15.1"
15+
"@types/accepts" = "^1.3.7"
16+
"@types/body-parser" = "^1.19.5"
17+
"@types/bytes" = "^3.1.5"
18+
"@types/common-tags" = "^1.8.4"
19+
"@types/content-disposition" = "^0.5.8"
20+
"@types/content-type" = "^1.1.8"
21+
"@types/cookie-parser" = "^1.4.8"
22+
"@types/cookies" = "^0.9.0"
23+
"@types/cross-spawn" = "^6.0.6"
24+
"@types/destroy" = "^1.0.3"
25+
"@types/encodeurl" = "^1.0.2"
26+
"@types/escape-html" = "^1.0.4"
27+
"@types/express" = "^5.0.0"
28+
"@types/extend" = "^3.0.4"
29+
"@types/fresh" = "^0.5.2"
30+
"@types/fs-readdir-recursive" = "^1.1.3"
31+
"@types/http-errors" = "^2.0.4"
32+
"@types/ini" = "^4.1.1"
33+
"@types/js-beautify" = "^1.14.3"
34+
"@types/js-yaml" = "^4.0.9"
35+
"@types/koa-bodyparser" = "^4.3.12"
36+
"@types/koa-compose" = "^3.2.8"
37+
"@types/koa-range" = "^0.3.5"
38+
"@types/lodash" = "^4.17.20"
39+
"@types/lodash.snakecase" = "^4.1.9"
40+
"@types/methods" = "^1.1.4"
41+
"@types/mime-types" = "^3.0.0"
42+
"@types/mocha" = "^10.0.10"
43+
"@types/mustache" = "^4.2.5"
44+
"@types/node" = "^24.10.2"
45+
"@types/nunjucks" = "^3.2.6"
46+
"@types/on-finished" = "^2.3.4"
47+
"@types/parseurl" = "^1.3.3"
48+
"@types/pluralize" = "^0.0.33"
49+
"@types/safe-timers" = "^1.1.2"
50+
"@types/sqlstring" = "^2.3.2"
51+
"@types/stack-trace" = "^0.0.33"
52+
"@types/statuses" = "^2.0.5"
53+
"@types/superagent" = "^8.1.9"
54+
"@types/type-is" = "^1.6.6"
55+
"@types/urijs" = "^1.19.25"
56+
"@types/vary" = "^1.1.3"
57+
"@typescript/native-preview" = "7.0.0-dev.20260117.1"
58+
"@vitest/coverage-v8" = "^4.0.15"
59+
"@vitest/ui" = "^4.0.15"
60+
accepts = "^1.3.8"
61+
address = "2"
62+
ajv = "^8.8.2"
63+
ajv-formats = "^2.1.1"
64+
ajv-keywords = "^5.1.0"
65+
assert-file = "1"
66+
await-event = "2"
67+
await-first = "^1.0.0"
68+
beautify-benchmark = "^0.2.4"
69+
benchmark = "^2.1.4"
70+
body-parser = "^2.0.0"
71+
bytes = "^3.1.2"
72+
c8 = "^10.1.3"
73+
cache-content-type = "^2.0.0"
74+
camelcase = "^9.0.0"
75+
cfork = "^2.0.0"
76+
chalk = "^5.4.1"
77+
cheerio = "^1.0.0"
78+
ci-parallel-vars = "^1.0.1"
79+
circular-json-for-egg = "^1.0.0"
80+
cluster-client = "^3.7.0"
81+
cluster-reload = "^2.0.0"
82+
co-busboy = "^2.0.1"
83+
coffee = "5"
84+
common-tags = "^1.8.2"
85+
content-disposition = "~1.0.0"
86+
content-type = "^1.0.5"
87+
cookie = "^1.0.2"
88+
cookie-parser = "^1.4.6"
89+
cookies = "^0.9.1"
90+
cpy = "^12.0.0"
91+
cpy-cli = "^6.0.0"
92+
cron-parser = "^4.9.0"
93+
cross-env = "^10.0.0"
94+
cross-spawn = "^7.0.6"
95+
csrf = "^3.1.0"
96+
dayjs = "^1.11.13"
97+
debounce = "^3.0.0"
98+
destroy = "^1.0.4"
99+
detect-port = "^2.1.0"
100+
egg-errors = "^2.3.0"
101+
egg-logger = "^3.5.0"
102+
egg-plugin-puml = "^2.4.0"
103+
egg-view-nunjucks = "^2.3.0"
104+
encodeurl = "^2.0.0"
105+
esbuild = "^0.27.0"
106+
esbuild-register = "^3.6.0"
107+
escape-html = "^1.0.3"
108+
execa = "^9.6.0"
109+
express = "^4.21.2"
110+
extend = "^3.0.2"
111+
extend2 = "^4.0.0"
112+
formstream = "^1.5.1"
113+
fresh = "~0.5.2"
114+
fs-readdir-recursive = "^1.1.0"
115+
gals = "1"
116+
get-ready = "^3.1.0"
117+
glob = "^11.0.0"
118+
globby = "^11.0.2"
119+
graceful = "^2.0.0"
120+
graceful-process = "^2.0.0"
121+
http-errors = "^2.0.0"
122+
humanize-ms = "^2.0.0"
123+
husky = "^9.1.7"
124+
inflection = "^3.0.0"
125+
ini = "^6.0.0"
126+
iconv-lite = "^0.6.3"
127+
ioredis = "^5.4.2"
128+
ioredis-mock = "^8.13.1"
129+
is-type-of = "^2.2.0"
130+
jest-changed-files = "^30.0.0"
131+
js-beautify = "^1.15.3"
132+
js-yaml = "^4.1.1"
133+
jsonp-body = "^2.0.0"
134+
keygrip = "^1.0.2"
135+
koa-bodyparser = "^4.4.1"
136+
koa-compose = "^4.1.0"
137+
koa-onerror = "^5.0.1"
138+
koa-override = "^4.0.0"
139+
koa-range = "^0.3.0"
140+
koa-session = "^7.0.2"
141+
koa-static = "^5.0.0"
142+
leoric = "^2.12.2"
143+
lint-staged = "^16.2.7"
144+
lodash = "^4.17.21"
145+
"lodash.snakecase" = "^4.1.1"
146+
marked = "^17.0.0"
147+
matcher = "^4.0.0"
148+
merge-descriptors = "^2.0.0"
149+
methods = "^1.1.2"
150+
mime-types = "^3.0.0"
151+
mm = "^4.0.2"
152+
mocha = "^11.7.5"
153+
moment = "^2.30.1"
154+
mri = "^1.2.0"
155+
multimatch = "^7.0.0"
156+
mustache = "^4.2.0"
157+
mysql2 = "^3.12.0"
158+
mz = "^2.7.0"
159+
mz-modules = "^2.1.0"
160+
nanoid = "^5.0.0"
161+
node-homedir = "^2.0.0"
162+
npminstall = "^7.12.0"
163+
nunjucks = "^3.2.4"
164+
nunjucks-markdown = "^2.0.1"
165+
on-finished = "^2.4.1"
166+
onelogger = "^1.0.1"
167+
oss-client = "^2.5.1"
168+
oxc-minify = "^0.105.0"
169+
oxfmt = "^0.20.0"
170+
oxlint = "^1.32.0"
171+
oxlint-tsgolint = "^0.11.0"
172+
parseurl = "^1.3.3"
173+
path-to-regexp = "^6.3.0"
174+
performance-ms = "^1.1.0"
175+
picocolors = "^1.1.1"
176+
pluralize = "^8.0.0"
177+
publint = "^0.3.16"
178+
ready-callback = "^4.0.0"
179+
reflect-metadata = "^0.2.2"
180+
rimraf = "^6.1.2"
181+
runscript = "^2.0.1"
182+
safe-timers = "^1.1.0"
183+
sdk-base = "^5.0.1"
184+
semver = "^7.7.3"
185+
sendmessage = "^3.0.1"
186+
should-send-same-site-none = "^2.0.5"
187+
source-map-support = "^0.5.21"
188+
spy = "^1.0.0"
189+
sqlstring = "^2.3.3"
190+
stack-trace = "^0.0.10"
191+
statuses = "^2.0.1"
192+
stream-wormhole = "^2.0.1"
193+
superagent = "^10.0.0"
194+
terminal-link = "^5.0.0"
195+
ts-node = "^10.9.2"
196+
tsconfig-paths = "^4.2.0"
197+
tsdown = "^0.18.2"
198+
tsx = "4.20.6"
199+
type-fest = "^5.0.1"
200+
type-is = "^2.0.0"
201+
typescript = "^5.9.3"
202+
unplugin-unused = "^0.5.4"
203+
urijs = "^1.19.11"
204+
urllib = "^4.8.2"
205+
utility = "^2.5.0"
206+
vary = "^1.1.2"
207+
vitepress = "2.0.0-alpha.15"
208+
vitepress-plugin-llms = "^1.10.0"
209+
vitest = "^4.0.15"
210+
xss = "^1.0.15"
211+
ylru = "^2.0.0"
212+
zod = "^3.24.1"
213+
214+
[catalogs.path-to-regexp1]
215+
path-to-regexp = "^1.9.0"

0 commit comments

Comments
 (0)