From d545fdff144cebdd9358b1b14c0c168b03a7fd0b Mon Sep 17 00:00:00 2001
From: Patrick Kollitsch <83281+davidsneighbour@users.noreply.github.com>
Date: Sat, 06 Jun 2026 01:11:52 +0000
Subject: [PATCH] fix: test local working tree in quickstart test (#938) (#978)

---
 .github/workflows/quickstart.yml |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/.github/workflows/quickstart.yml b/.github/workflows/quickstart.yml
index a9ece81..7281781 100644
--- a/.github/workflows/quickstart.yml
+++ b/.github/workflows/quickstart.yml
@@ -46,6 +46,16 @@
       - name: Install dependencies
         run: npm ci
 
-      - name: Run quickstart test
+      # Default (local) mode installs the checked-out working tree as the theme,
+      # so this gate actually exercises the code on the current branch / PR.
+      - name: Run quickstart test (local working tree)
         run: |
           node scripts/test-hugo-quickstart.ts
+
+      # Additionally verify the documented submodule install against the published
+      # theme, but only after merge to a release branch to avoid testing stale
+      # published code on feature branches and PRs.
+      - name: Run quickstart test (published submodule)
+        if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
+        run: |
+          node scripts/test-hugo-quickstart.ts --use-submodule

--
Gitblit v1.10.0