Skip to content

Add automated template testing to CI#56

Merged
Josephat-S merged 1 commit into
devfrom
feat/template-testing
May 25, 2026
Merged

Add automated template testing to CI#56
Josephat-S merged 1 commit into
devfrom
feat/template-testing

Conversation

@Josephat-S
Copy link
Copy Markdown
Contributor

This pull request introduces comprehensive automated testing for project templates, ensuring that all template, architecture, and design combinations are generated and built successfully before merging. It adds both a reusable integration test script and a GitHub Actions workflow to run these tests in CI, significantly improving reliability and catching regressions early.

Automated Template Testing and CI Integration:

  • New GitHub Actions workflow for template testing:
    Adds .github/workflows/templates.yml to automatically test all supported templates on pull requests affecting template-related files, using a matrix strategy for parallelization.

  • Comprehensive integration test script:
    Introduces scripts/test-templates.js, which generates and builds every combination of template, architecture, and design, supporting a quick mode for faster CI runs.

  • Script for single-template testing (for CI matrix):
    Adds scripts/test-single-template.js, allowing CI to test each template independently across all its supported options, improving parallel execution and feedback speed.

Developer Experience Improvements:

  • New npm scripts for template testing:
    Updates package.json with test:templates and test:templates:quick scripts for easy local and CI invocation of the new test suite.

    Closes Automated Template Testing in CI #44

@Josephat-S Josephat-S requested a review from a team May 25, 2026 19:09
@Josephat-S Josephat-S merged commit 1c2a135 into dev May 25, 2026
6 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.

Automated Template Testing in CI

1 participant