Require release versions for script uploads
CI / checks (push) Successful in 5m26s

This commit is contained in:
2026-10-12 18:46:57 -04:00
parent ffda04f276
commit 2f52dcb1ef
50 changed files with 871 additions and 113 deletions
+3
View File
@@ -44,6 +44,7 @@ async function attachBeta(state = 'running', outcome?: string, deleted = false)
const { createScript } = await import('../../src/lib/server/fleet/scripts.js');
const { db } = await import('../../src/lib/server/db/index.js');
const { script, version } = createScript({
releaseVersion: '1.0.0',
name: 'Protected beta',
targetRelPath: 'protected.gsc',
scopeType: 'game',
@@ -171,6 +172,7 @@ describe('active beta destruction guard', () => {
expect(queued.ok).toBe(true);
if (!queued.ok) throw new Error('Expected queued removal');
const { script, version } = createScript({
releaseVersion: '1.0.0',
name: 'Beta admission',
targetRelPath: 'admission.gsc',
scopeType: 'game',
@@ -221,6 +223,7 @@ describe('active beta destruction guard', () => {
.prepare('UPDATE server_deployments SET state = ?, stage = ? WHERE id = ?')
.run(state, stage, operation);
const { script, version } = createScript({
releaseVersion: '1.0.0',
name: 'Beta admission',
targetRelPath: 'admission.gsc',
scopeType: 'game',