From 789d6ec15cfe95a8d3bfa9acc8c7538dc8b5f85b Mon Sep 17 00:00:00 2001 From: wangdl Date: Fri, 19 Jun 2026 23:03:31 +0800 Subject: [PATCH] refactor: rename integration test files and CI step MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - test/worker-integration.worker-int-spec.ts (was m-ai-01-09.worker-int-spec) - test/api-e2e.worker-int-spec.ts (was m-ai-01-09-api-e2e.worker-int-spec) - test/run-integration-tests.sh (was run-integration-ci.sh) - CI step: "Worker 集成测试 (BullMQ/MySQL/Redis 真实验证)" - npm script: test:integration Co-Authored-By: Claude Opus 4.7 --- .gitea/workflows/deploy.yml | 4 ++-- package.json | 2 +- ...-api-e2e.worker-int-spec.ts => api-e2e.worker-int-spec.ts} | 0 test/{run-integration-ci.sh => run-integration-tests.sh} | 0 ...rker-int-spec.ts => worker-integration.worker-int-spec.ts} | 0 5 files changed, 3 insertions(+), 3 deletions(-) rename test/{m-ai-01-09-api-e2e.worker-int-spec.ts => api-e2e.worker-int-spec.ts} (100%) rename test/{run-integration-ci.sh => run-integration-tests.sh} (100%) rename test/{m-ai-01-09.worker-int-spec.ts => worker-integration.worker-int-spec.ts} (100%) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 2df7c35..bdbb80b 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -104,10 +104,10 @@ jobs: echo "[deploy] Worker startup log:" sudo journalctl -u zhixi-nest-worker --no-pager -n 10 - - name: Run M-AI-01 integration tests + - name: Worker 集成测试 (BullMQ/MySQL/Redis 真实验证) run: | cd /tmp/api-server - bash test/run-integration-ci.sh + bash test/run-integration-tests.sh env: DATABASE_URL: mysql://zhixi_user:hKHQ+N0wBjJAiLukFu5OMEI8@127.0.0.1:3306/zhixi_prod REDIS_HOST: 127.0.0.1 diff --git a/package.json b/package.json index 2c06c62..2acf3b7 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "test:cov": "jest --coverage", "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", "test:e2e": "jest --config ./test/jest-e2e.json", - "test:integration:worker": "bash test/run-integration-ci.sh", + "test:integration": "bash test/run-integration-tests.sh", "seed": "npx ts-node --compiler-options '{\"module\":\"commonjs\"}' prisma/seed.ts" }, "prisma": { diff --git a/test/m-ai-01-09-api-e2e.worker-int-spec.ts b/test/api-e2e.worker-int-spec.ts similarity index 100% rename from test/m-ai-01-09-api-e2e.worker-int-spec.ts rename to test/api-e2e.worker-int-spec.ts diff --git a/test/run-integration-ci.sh b/test/run-integration-tests.sh similarity index 100% rename from test/run-integration-ci.sh rename to test/run-integration-tests.sh diff --git a/test/m-ai-01-09.worker-int-spec.ts b/test/worker-integration.worker-int-spec.ts similarity index 100% rename from test/m-ai-01-09.worker-int-spec.ts rename to test/worker-integration.worker-int-spec.ts