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
1 changed files with 6 additions and 0 deletions

View File

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