test(deploy): 适配V2.8发布smoke验证

This commit is contained in:
2026-07-08 18:21:58 +08:00
parent a845792369
commit c5b086f88a

View File

@@ -27,12 +27,15 @@ test('GitHub Actions workflow builds pushes deploys migrates and verifies runtim
const workflowPath = join(repoRoot, '.github/workflows/deploy-production.yml');
assert.equal(existsSync(workflowPath), true);
const workflow = readFileSync(workflowPath, 'utf8');
const smokeScript = readFileSync(join(repoRoot, 'scripts/smoke-test-release.mjs'), 'utf8');
assert.match(workflow, /docker\/build-push-action/);
assert.match(workflow, /appleboy\/ssh-action/);
assert.match(workflow, /docker compose --env-file \.env\.production -f docker-compose\.prod\.yml pull/);
assert.match(workflow, /pnpm --filter server db:deploy/);
assert.match(workflow, /\/api\/v1\/health\/version/);
assert.match(workflow, /smoke-test-release\.mjs/);
assert.match(workflow, /--expected-version "\$\{\{ github\.sha \}\}"/);
assert.match(smokeScript, /\/api\/v1\/health\/version/);
});
test('deployment runtime version check is available as a repeatable script', () => {