Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78482d0082 | ||
|
|
3ab69d7b5d |
2 changed files with 22 additions and 1 deletions
|
|
@ -44,3 +44,17 @@ test('publication comparison, artifact upload and deployment require canonical m
|
|||
if (name !== 'Trigger deployment after successful CI') assert.doesNotMatch(body, /DUNEREALMS_DEPLOY_KEY|ssh .*dunedeploy@/);
|
||||
}
|
||||
});
|
||||
|
||||
test('the production staging archive contains all recipe publication inputs', () => {
|
||||
const builder = readFileSync(new URL('../../website/ops/dunerealms-build-release', import.meta.url), 'utf8');
|
||||
const inputs = builder.replace(/\\\r?\n/g, ' ').match(/git archive "\$SHA" ([^|]+)/)?.[1].trim().split(/\s+/);
|
||||
assert.ok(inputs, 'Expected an explicit production archive scope');
|
||||
for (const recipeInput of [
|
||||
'DuneRealmsGUI/executablecrafting/recipes',
|
||||
'DuneRealmsGUI/executableitems/arrakis',
|
||||
'DuneRealmsGUI/ecology/food-icons',
|
||||
'JarvisConnector/src/main/resources/survival-food-recipes.json',
|
||||
'DuneTerrain/src/main/resources/starter-repair-parts.json'
|
||||
]) assert.ok(inputs.includes(recipeInput), recipeInput);
|
||||
assert.match(builder, /export GITHUB_SHA="\$SHA"/);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -15,7 +15,14 @@ DEST="$BASE/artifacts/$SHA"
|
|||
TMP="$BASE/artifacts/.${SHA}.tmp.$$"
|
||||
trap 'rm -rf "$TMP"' EXIT
|
||||
mkdir -p "$TMP"
|
||||
git archive "$SHA" website tools | tar -x -C "$TMP"
|
||||
# The public recipe book derives its data from the reviewed game recipes.
|
||||
git archive "$SHA" website tools \
|
||||
DuneRealmsGUI/executablecrafting/recipes \
|
||||
DuneRealmsGUI/executableitems/arrakis \
|
||||
DuneRealmsGUI/ecology/food-icons \
|
||||
JarvisConnector/src/main/resources/survival-food-recipes.json \
|
||||
DuneTerrain/src/main/resources/starter-repair-parts.json | tar -x -C "$TMP"
|
||||
export GITHUB_SHA="$SHA"
|
||||
cd "$TMP/website"
|
||||
corepack pnpm install --frozen-lockfile
|
||||
corepack pnpm build
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff