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