refactor: rename integration test files and CI step
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 3m21s

- 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 <noreply@anthropic.com>
This commit is contained in:
wangdl 2026-06-19 23:03:31 +08:00
parent 1ecaf1dcb5
commit 789d6ec15c
5 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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": {