fix: verify staged demo asset sets
This commit is contained in:
1 parent
45e20ed0cd
commit
37ca4ae356
2 files changed
+15
No files matched your search
@@ -42,6 +42,17 @@ if (!str_contains($template, $pathBuilder)
|
||||
$failures[] = 'Template и examples должны строить путь из Index-совместимого имени demo/demo-N.';
|
||||
}
|
||||
|
||||
$workflow = (string) file_get_contents($root . '/.gitea/workflows/deploy.yml');
|
||||
foreach ([
|
||||
'"$PRELAND_URL/images/demo/1/source.avif"',
|
||||
'"$PRELAND_URL/images/demo-2/1/source.avif"',
|
||||
'"$PRELAND_URL/?indpic=2&nc=$(date +%s)"',
|
||||
] as $requiredStageSmokeCheck) {
|
||||
if (!str_contains($workflow, $requiredStageSmokeCheck)) {
|
||||
$failures[] = "Stage-деплой обязан проверять публикацию {$requiredStageSmokeCheck}.";
|
||||
}
|
||||
}
|
||||
|
||||
if ($failures !== []) {
|
||||
fwrite(STDERR, "FAILED\n- " . implode("\n- ", $failures) . "\n");
|
||||
exit(1);
|
||||
|
||||
Reference in new issue
Block a user