-
Notifications
You must be signed in to change notification settings - Fork 0
Add Drizzle schema validation to CI workflow #57
Copy link
Copy link
Labels
area: ci-cdCI/CD workflowsCI/CD workflowsarea: databaseDatabase and ORMDatabase and ORMenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomerspriority: lowNice to haveNice to havesize: small1-2 hours effort1-2 hours effort
Milestone
Metadata
Metadata
Assignees
Labels
area: ci-cdCI/CD workflowsCI/CD workflowsarea: databaseDatabase and ORMDatabase and ORMenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomerspriority: lowNice to haveNice to havesize: small1-2 hours effort1-2 hours effort
Type
Fields
Give feedbackNo fields configured for Feature.
Projects
Status
Done
Description
Add a CI validation step that checks the example Drizzle schema in `setup-project.sh` for TypeScript correctness. Currently the embedded TypeScript code in the shell script is not type-checked.
Why
The schema template in `setup-project.sh` is TypeScript embedded in a heredoc — it's invisible to `tsc`. If a Drizzle API change breaks the template, users would discover the error only after running `setup-project.sh`. A CI check catches this during development.
Acceptance Criteria
Notes
This is a creative problem — the TypeScript is embedded in bash heredocs. One approach is to extract the templates to standalone `.ts` files in a test directory and type-check them separately.