Gate release candidates with save retry flow

This commit is contained in:
2026-07-05 09:09:00 +09:00
parent 56b01a5c94
commit 70933a7f51

View File

@@ -12,6 +12,7 @@ try {
runCommand('node', ['scripts/verify-static-data.mjs']);
mkdirSync(screenshotDir, { recursive: true });
serverProcess = await ensurePreviewServer(targetUrl);
runCommand(process.execPath, ['scripts/verify-save-retry-flow.mjs'], { VERIFY_URL: targetUrl });
browser = await chromium.launch({ headless: true });
const page = await browser.newPage({ viewport: { width: 1280, height: 720 } });
@@ -467,8 +468,8 @@ function assert(condition, message) {
}
}
function runCommand(command, args) {
const result = spawnSync(command, args, { cwd: process.cwd(), stdio: 'inherit' });
function runCommand(command, args, env = {}) {
const result = spawnSync(command, args, { cwd: process.cwd(), env: { ...process.env, ...env }, stdio: 'inherit' });
if (result.status !== 0) {
throw new Error(`Command failed: ${command} ${args.join(' ')}`);
}