ci: limit container test concurrency
This commit is contained in:
+2
-1
@@ -16,7 +16,8 @@ RUN pnpm config set registry https://registry.npmmirror.com && \
|
|||||||
pnpm install --frozen-lockfile
|
pnpm install --frozen-lockfile
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN pnpm test && pnpm build
|
# Docker 构建时同机还会运行多项服务,限制 Vitest 并发以避免测试超时。
|
||||||
|
RUN pnpm test -- --maxWorkers=1 && pnpm build
|
||||||
|
|
||||||
# 运行阶段:仅保留构建产物和 Nginx,不包含源码或 node_modules。
|
# 运行阶段:仅保留构建产物和 Nginx,不包含源码或 node_modules。
|
||||||
FROM nginx:1.27-alpine
|
FROM nginx:1.27-alpine
|
||||||
|
|||||||
Reference in New Issue
Block a user