feat: extend operation log service and repository with pagination support
This commit is contained in:
+32
-2
@@ -69,12 +69,25 @@ pipeline:
|
||||
image: maven:3.9-eclipse-temurin-21
|
||||
commands:
|
||||
- cd novalon-manage-api
|
||||
- mvn test -B
|
||||
- mvn clean verify -B
|
||||
- echo "测试覆盖率报告已生成在 target/site/jacoco/index.html"
|
||||
depends_on:
|
||||
- build
|
||||
when:
|
||||
- event: push
|
||||
|
||||
# SonarQube代码质量检查
|
||||
sonarqube-scan:
|
||||
image: maven:3.9-eclipse-temurin-21
|
||||
commands:
|
||||
- cd novalon-manage-api
|
||||
- mvn clean verify sonar:sonar -Dsonar.host.url=${SONAR_HOST_URL} -Dsonar.login=${SONAR_TOKEN} -B
|
||||
secrets: [ sonar_host_url, sonar_token ]
|
||||
depends_on:
|
||||
- backend-unit-test
|
||||
when:
|
||||
- event: pull_request
|
||||
|
||||
# 前端单元测试(在novalon-manage-web项目中运行)
|
||||
frontend-unit-test:
|
||||
image: node:20
|
||||
@@ -112,6 +125,22 @@ pipeline:
|
||||
when:
|
||||
- event: pull_request
|
||||
|
||||
# 前端E2E测试(在novalon-manage-web中运行)
|
||||
frontend-e2e-test:
|
||||
image: mcr.microsoft.com/playwright:v1.42.0-jammy
|
||||
commands:
|
||||
- cd novalon-manage-web
|
||||
- npm ci
|
||||
- npx playwright install --with-deps chromium
|
||||
- npx playwright test
|
||||
environment:
|
||||
NODE_ENV: test
|
||||
CI: true
|
||||
depends_on:
|
||||
- deploy-staging
|
||||
when:
|
||||
- event: pull_request
|
||||
|
||||
# ========== 阶段3:生产验证(部署前) ==========
|
||||
# 性能测试(在tests_suite中运行)
|
||||
performance-test:
|
||||
@@ -148,12 +177,13 @@ pipeline:
|
||||
- status: [ success, failure ]
|
||||
depends_on:
|
||||
- build
|
||||
- test
|
||||
- package
|
||||
- backend-unit-test
|
||||
- sonarqube-scan
|
||||
- frontend-unit-test
|
||||
- integration-test
|
||||
- e2e-test
|
||||
- frontend-e2e-test
|
||||
- performance-test
|
||||
- security-test
|
||||
- deploy-staging
|
||||
|
||||
Reference in New Issue
Block a user