ci update
All checks were successful
Build & Push Docker (latest) / verify (push) Successful in 9m31s
Build & Push Docker (latest) / build (push) Successful in 16s

This commit is contained in:
Aiden Wilson
2026-05-29 23:58:42 +10:00
parent 959f6590c3
commit 3e6b128643
4 changed files with 6 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ jobs:
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 20 node-version: 22
cache: npm cache: npm
- name: Install dependencies - name: Install dependencies

View File

@@ -1,6 +1,5 @@
FROM node:22-alpine FROM node:22-alpine
ENV NODE_ENV=production
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
@@ -12,5 +11,6 @@ COPY scripts ./scripts
COPY tsconfig.json ./ COPY tsconfig.json ./
RUN npm run build && npm prune --omit=dev RUN npm run build && npm prune --omit=dev
ENV NODE_ENV=production
EXPOSE 3000 EXPOSE 3000
CMD ["npm", "start"] CMD ["npm", "start"]

View File

@@ -399,7 +399,7 @@ export function casparTemplatePage() {
<main class="stage fit-contain"> <main class="stage fit-contain">
<section class="embed provider-empty" data-source="" style="--embed-width:500px"></section> <section class="embed provider-empty" data-source="" style="--embed-width:500px"></section>
</main> </main>
<script src="/caspar.js"></script> <script type="module" src="/caspar.js"></script>
</body> </body>
</html>`; </html>`;
} }
@@ -477,7 +477,7 @@ export function collagePage({
<div class="collage-track"></div> <div class="collage-track"></div>
</main> </main>
<script id="collage-data" type="application/json">${safeJson(collageData)}</script> <script id="collage-data" type="application/json">${safeJson(collageData)}</script>
<script src="/collage.js"></script> <script type="module" src="/collage.js"></script>
</body> </body>
</html>`; </html>`;
} }

View File

@@ -207,7 +207,7 @@ test("renders a CasparCG template shell", () => {
assert.match(page, /<body class="graphic transparent is-loading"/); assert.match(page, /<body class="graphic transparent is-loading"/);
assert.match(page, /<section class="embed provider-empty"/); assert.match(page, /<section class="embed provider-empty"/);
assert.match(page, /<script src="\/caspar\.js"><\/script>/); assert.match(page, /<script type="module" src="\/caspar\.js"><\/script>/);
}); });
test("renders a vertical scrolling collage page with repeated embed cards", () => { test("renders a vertical scrolling collage page with repeated embed cards", () => {
@@ -261,7 +261,7 @@ test("renders a vertical scrolling collage page with repeated embed cards", () =
assert.match(page, /"hydrateDelay":180/); assert.match(page, /"hydrateDelay":180/);
assert.match(page, /"repeat":3/); assert.match(page, /"repeat":3/);
assert.match(page, /"shuffle":false/); assert.match(page, /"shuffle":false/);
assert.match(page, /<script src="\/collage\.js"><\/script>/); assert.match(page, /<script type="module" src="\/collage\.js"><\/script>/);
}); });
test("shrinks collage card width to fit the configured screen width", () => { test("shrinks collage card width to fit the configured screen width", () => {