From b7a8716a822a926bbe02bb0a62377a220e1109ae Mon Sep 17 00:00:00 2001 From: realaravinth Date: Sun, 8 May 2022 20:02:48 +0530 Subject: [PATCH] feat: define checking routine --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index c51a9181..47ee5c02 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,14 @@ endef default: frontend ## Build app in debug mode cargo build +check: ## Check for syntax errors on all workspaces + cargo check --workspace --tests --all-features + cd db/db-migrations && cargo check --tests --all-features + cd db/db-sqlx-postgres &&\ + DATABASE_URL=${POSTGRES_DATABASE_URL}\ + cargo check + cd db/db-core/ && cargo check + clean: ## Delete build artifacts @cargo clean @yarn cache clean