Overview
Currently, there is no CI pipeline. Any PR that breaks the generated Dart
output, bad imports, deprecated APIs, or broken templates can land in main
undetected.
This issue sets up a GitHub Actions workflow that automatically runs
dart analyze on the generated output for every PR, blocking merges if
the generated code has errors or warnings.
What the Workflow Should Do
- Trigger on every PR targeting
main
- Install dependencies with
bun install
- Run the generator via
scripts/template-dev.ts for each architecture
and app type combination
- Run
dart analyze on the generated dev_out/ folder
- Fail the workflow if any errors or warnings are found
- Post a summary of results as a PR comment
Matrix Strategy
The workflow should test the full combination surface:
Architectures:
- Clean Architecture
- MVVM
- Feature-First
App Types (once # lands):
- todo
- ecommerce
- chat
- fintech
Run all architectures on every PR. App types can be added to the matrix
once the App Type feature is merged.
Workflow File
Create .github/workflows/ci.yml
Suggested steps:
Acceptance Criteria
References
- scripts/template-dev.ts
- docs/template-development.md
- .github/workflows/ (create this directory)
Overview
Currently, there is no CI pipeline. Any PR that breaks the generated Dart
output, bad imports, deprecated APIs, or broken templates can land in main
undetected.
This issue sets up a GitHub Actions workflow that automatically runs
dart analyzeon the generated output for every PR, blocking merges ifthe generated code has errors or warnings.
What the Workflow Should Do
mainbun installscripts/template-dev.tsfor each architectureand app type combination
dart analyzeon the generateddev_out/folderMatrix Strategy
The workflow should test the full combination surface:
Architectures:
App Types (once # lands):
Run all architectures on every PR. App types can be added to the matrix
once the App Type feature is merged.
Workflow File
Create
.github/workflows/ci.ymlSuggested steps:
subosito/flutter-action)bun installflutter analyze dev_out/and fail on any issuesdev_out/as a workflow artifact for debuggingAcceptance Criteria
mainmainReferences