fix(ci): guard check/build/deploy against unsubstituted template #7

Merged
mathias merged 1 commits from fix-ci-template-guard into main 2026-07-06 11:46:46 +00:00
Owner

Closes #6.

Adds a guard job that greps go.mod for __MODULE_PATH__. When present (i.e. this is the raw template, not an instantiated project), check/build/deploy are skipped instead of failing.

Verified locally: ran scripts/new-project.sh (local-dev) end-to-end against this template in a scratch dir — placeholder substitution (module path, Taskfile binary names) already correct, confirming issues #4 and #5 are also already fixed at the source (stale, will close separately).

This PR itself is the live test: go.mod on this branch still has __MODULE_PATH__, so the guard should make this run skip cleanly instead of going red.

Closes #6. Adds a `guard` job that greps `go.mod` for `__MODULE_PATH__`. When present (i.e. this is the raw template, not an instantiated project), `check`/`build`/`deploy` are skipped instead of failing. Verified locally: ran `scripts/new-project.sh` (local-dev) end-to-end against this template in a scratch dir — placeholder substitution (module path, Taskfile binary names) already correct, confirming issues #4 and #5 are also already fixed at the source (stale, will close separately). This PR itself is the live test: go.mod on this branch still has `__MODULE_PATH__`, so the guard should make this run skip cleanly instead of going red.
mathias added 1 commit 2026-07-05 07:18:04 +00:00
fix(ci): guard check/build/deploy against unsubstituted template (#6)
CD / Detect unsubstituted template (pull_request) Successful in 0s
CD / Lint / Test / Vet (pull_request) Has been skipped
CD / Build & Import (pull_request) Has been skipped
CD / Deploy via GitOps (pull_request) Has been skipped
4d1fa1d488
mathias merged commit 3a7b70ef62 into main 2026-07-06 11:46:46 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mathias/template-go-web#7