Skip to content

ci: add tool template to validate-templates matrix#14

Merged
mcp-tool-shop merged 2 commits into
mainfrom
ci/validate-templates-tool
Jun 16, 2026
Merged

ci: add tool template to validate-templates matrix#14
mcp-tool-shop merged 2 commits into
mainfrom
ci/validate-templates-tool

Conversation

@mcp-tool-shop

Copy link
Copy Markdown
Member

What

Adds tool to the validate-templates matrix in .github/workflows/ci.yml, so the 6th template (added in v2.0.0) is built end-to-end in CI like the other five.

-        template: [default, docs, product, portfolio, app]
+        template: [default, docs, product, portfolio, app, tool]

Why

templates/tool/ was covered only by the init --template tool unit test in tests/cli.test.mjs — never by the matrix job that scaffolds each template, packs the theme, installs the tarball, and runs astro build. This closes that gap with no other matrix growth.

Verification

Mirrored the matrix step locally before pushing:

  1. node cli/init.mjs init --template tool --dry-run — plan is correct
  2. Temp project → init --template toolnpm pack → install the .tgz into site/npm run build
  3. astro build completes clean (1 page built)

The new validate-templates (tool) job should pass in CI here.

Constraints honored (org Actions rules)

  • Paths-gated push/pull_request triggers unchanged
  • runs-on: ubuntu-latest unchanged
  • Exactly one matrix entry added — no other matrix growth
  • concurrency block intact

🤖 Generated with Claude Code

mcp-tool-shop and others added 2 commits June 16, 2026 04:31
The `tool` template (templates/tool/, added in v2.0.0) was only covered
by the `init --template tool` unit test, not the CI matrix that builds
each template end-to-end (scaffold -> pack -> install tgz -> astro build).
Add it as the 6th matrix entry so it is exercised like the others.

Verified locally by mirroring the matrix step: scaffold a temp project
with `init --template tool`, `npm pack`, install the tgz into site/, and
`npm run build` -- builds clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mcp-tool-shop mcp-tool-shop merged commit e8dee92 into main Jun 16, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant