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
+7
View File
@@ -63,6 +63,7 @@ describe('editing promoted script scopes', () => {
const { db } = await import('../../src/lib/server/db/index.js');
const scopeValue = scopeType === 'game' ? 't5' : 'zombie_theater';
const { script, version } = createScript({
releaseVersion: '1.0.0',
name: 'restore scope',
targetRelPath: 'restore.gsc',
scopeType,
@@ -135,6 +136,7 @@ describe('editing promoted script scopes', () => {
const { openBeta } = await import('../../src/lib/server/fleet/beta.js');
const { db } = await import('../../src/lib/server/db/index.js');
const { script, version } = createScript({
releaseVersion: '1.0.0',
name: 'active scope',
targetRelPath: 'active.gsc',
scopeType: 'game',
@@ -179,6 +181,7 @@ describe('promote creates a deployment', () => {
// A game-scoped script matches both fixture servers.
const { script } = createScript({
releaseVersion: '1.0.0',
name: 'hud tweaks',
targetRelPath: 'hud.gsc',
scopeType: 'game',
@@ -268,6 +271,7 @@ describe('rollback beta on ready-promote marks version test-failed', () => {
const { db } = await import('../../src/lib/server/db/index.js');
const { script } = createScript({
releaseVersion: '1.0.0',
name: 'flag experiment',
targetRelPath: 'flag.gsc',
scopeType: 'map',
@@ -310,6 +314,7 @@ describe('rollback promote deployment', () => {
const { db } = await import('../../src/lib/server/db/index.js');
const { script } = createScript({
releaseVersion: '1.0.0',
name: 'roll me back',
targetRelPath: 'rb.gsc',
scopeType: 'game',
@@ -379,6 +384,7 @@ describe('multi-script beta', () => {
// Two scripts, both scope=game=t5 so they both land on both fixture servers.
const a = createScript({
releaseVersion: '1.0.0',
name: 'hud',
targetRelPath: 'hud.gsc',
scopeType: 'game',
@@ -386,6 +392,7 @@ describe('multi-script beta', () => {
content: Buffer.from('hud(){}\n')
});
const b = createScript({
releaseVersion: '1.0.0',
name: 'flag',
targetRelPath: 'flag.gsc',
scopeType: 'game',