refactor: rename integration test files and CI step
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 3m21s
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:
parent
1ecaf1dcb5
commit
789d6ec15c
@ -104,10 +104,10 @@ jobs:
|
|||||||
echo "[deploy] Worker startup log:"
|
echo "[deploy] Worker startup log:"
|
||||||
sudo journalctl -u zhixi-nest-worker --no-pager -n 10
|
sudo journalctl -u zhixi-nest-worker --no-pager -n 10
|
||||||
|
|
||||||
- name: Run M-AI-01 integration tests
|
- name: Worker 集成测试 (BullMQ/MySQL/Redis 真实验证)
|
||||||
run: |
|
run: |
|
||||||
cd /tmp/api-server
|
cd /tmp/api-server
|
||||||
bash test/run-integration-ci.sh
|
bash test/run-integration-tests.sh
|
||||||
env:
|
env:
|
||||||
DATABASE_URL: mysql://zhixi_user:hKHQ+N0wBjJAiLukFu5OMEI8@127.0.0.1:3306/zhixi_prod
|
DATABASE_URL: mysql://zhixi_user:hKHQ+N0wBjJAiLukFu5OMEI8@127.0.0.1:3306/zhixi_prod
|
||||||
REDIS_HOST: 127.0.0.1
|
REDIS_HOST: 127.0.0.1
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
"test:cov": "jest --coverage",
|
"test:cov": "jest --coverage",
|
||||||
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
"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: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"
|
"seed": "npx ts-node --compiler-options '{\"module\":\"commonjs\"}' prisma/seed.ts"
|
||||||
},
|
},
|
||||||
"prisma": {
|
"prisma": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user