test(deploy): 适配V2.8发布smoke验证
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user