From 1b7a988ed4dab2d0db3152bacd893cb67eb50cab Mon Sep 17 00:00:00 2001
From: Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Date: Thu, 04 Jun 2026 23:21:31 +0000
Subject: [PATCH] fix: test local working tree in quickstart test (#938)

---
 .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