ci: incremental backend tests, cached web dependencies, web build in parallel with the tests
ci/woodpecker/push/web-build Pipeline was successful
ci/woodpecker/push/verify Pipeline failed

This commit is contained in:
justme committed 2026-10-09 13:39:55 +08:00
1 parent 006814823b
commit be04045c8c
4 files changed
+119 -7

No files matched your search

+2 -1
View File
@@ -23,4 +23,5 @@ steps:
environment:
NUGET_PACKAGES: /home/justme/.nuget/packages
commands:
- cd backend && dotnet test --solution MoShiro.slnx -c Release
# 增量编译 + 测试(把后端源码同步到固定目录,只重编译变了的项目),见 ci/verify-backend.sh
- bash ci/verify-backend.sh
+3 -6
View File
@@ -13,15 +13,12 @@ when:
- event: push
branch: main
depends_on:
- verify
# 和 verify 并行:前端构建不依赖后端测试,两个同时跑
steps:
- name: web-build
image: bash
environment:
NPM_CONFIG_CACHE: /home/justme/.npm
commands:
- npm ci --prefix web --prefer-offline
- npm run build --prefix web
- npm run lint:css --prefix web
# node_modules 按锁文件哈希缓存,展示端和管理端并行构建,再检查 CSS,见 ci/web-build.sh
- bash ci/web-build.sh