ADDED - test gate: pre-push hook, copy-paste summary, make targets, mandatory-tests rule, CI test step
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
.PHONY: start stop restart deploy logs build ps port health clean-orphans app-shell db-shell db-init db-migrate db-seed prisma-generate prisma-migrate help
|
||||
.PHONY: start stop restart deploy logs build ps port health clean-orphans app-shell db-shell db-init db-migrate db-seed prisma-generate prisma-migrate test test-watch help
|
||||
|
||||
MIGRATION_NAME ?= init
|
||||
|
||||
@@ -46,6 +46,12 @@ db-migrate:
|
||||
db-seed:
|
||||
docker compose exec app npx prisma db seed
|
||||
|
||||
test:
|
||||
@node scripts/test-summary.mjs
|
||||
|
||||
test-watch:
|
||||
npm run test:watch
|
||||
|
||||
prisma-generate:
|
||||
docker compose exec app npx prisma generate
|
||||
|
||||
@@ -74,3 +80,5 @@ help:
|
||||
@echo " make prisma-generate Run prisma generate"
|
||||
@echo " make prisma-migrate Create/apply dev migration"
|
||||
@echo " make health Check app health endpoint via public domain"
|
||||
@echo " make test Run the whole test suite + print a copy-paste summary"
|
||||
@echo " make test-watch Run the test suite in watch mode"
|
||||
|
||||
Reference in New Issue
Block a user