feat: make workflow to sqlx offline codegen

This commit is contained in:
Aravinth Manivannan 2023-01-26 20:54:40 +05:30
parent 0ac915b426
commit e1b8836732
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88

View file

@ -51,6 +51,12 @@ release: frontend ## Release build
run: default ## Run debug build run: default ## Run debug build
cargo run cargo run
sqlx-offline-data: ## prepare sqlx offline data
cargo sqlx prepare \
--database-url=${DATABASE_URL} -- \
--all-features \
--bin survey
test: frontend ## Run tests test: frontend ## Run tests
echo 'static/' && tree static || true echo 'static/' && tree static || true
echo 'tree/' && tree assets || true echo 'tree/' && tree assets || true