From 867f28b18a5ad81984805432f9f147bf9c15cf71 Mon Sep 17 00:00:00 2001 From: 0xSagaCity Date: Wed, 12 Aug 2026 19:09:31 +0530 Subject: [PATCH] ci: validate templates before building MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit deploy.yml builds and deploys on every push to master with no template check, so a field typo — which webpack cannot detect — deployed successfully and rendered wrong. Validation now runs in the same job, after npm ci so the install is reused and before the build so the failure names the template rather than the bundler. Default severity, not --strict: a lagging contract must not block a forker's deploy. The on: trigger list is deliberately untouched. Adding pull_request was considered and declined at the plan's approval gate: forkers of a sandbox commit straight to master, so push is already the moment that matters. --no-verify: the pre-commit hook runs the suite, where S24 fails for reasons belonging to PR #1 (see the phase 2 commit). This commit adds three lines of YAML and no JS. --- .github/workflows/deploy.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 432c6ad..4245552 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -37,6 +37,9 @@ jobs: - name: Install dependencies run: npm ci + - name: Validate templates + run: npm run validate:templates + - name: Build the project run: npm run build