feat(ci): add code queue dev smoke
This commit is contained in:
@@ -683,6 +683,13 @@ function resolveDeployDevManifest(desiredRef: string): DeployDevManifestSummary
|
||||
};
|
||||
}).filter((service) => service.id.length > 0 && service.commitId.length > 0);
|
||||
if (services.length === 0) throw new Error(`origin/${desiredRef}:deploy.json has no environments.dev services with commitId`);
|
||||
const codeQueueService = services.find((service) => service.id === "code-queue");
|
||||
if (codeQueueService === undefined) {
|
||||
throw new Error(`origin/${desiredRef}:deploy.json environments.dev.services must include code-queue for ci run-dev-e2e`);
|
||||
}
|
||||
if (!/^[0-9a-f]{40}$/u.test(codeQueueService.commitId)) {
|
||||
throw new Error(`origin/${desiredRef}:deploy.json environments.dev.services code-queue commitId must be a full 40-character SHA`);
|
||||
}
|
||||
return {
|
||||
deployCommit: deployCommitResult.stdout.trim(),
|
||||
desiredRef,
|
||||
|
||||
Reference in New Issue
Block a user