Gate release candidates with save retry flow
This commit is contained in:
@@ -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(' ')}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user