Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into rego-template-endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
samteb committed Feb 7, 2024
2 parents 2ab7f70 + e94d238 commit 744ea93
Show file tree
Hide file tree
Showing 18 changed files with 899 additions and 35 deletions.
9 changes: 9 additions & 0 deletions apps/authz/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ authz/db/setup:
prisma migrate reset \
--schema ${AUTHZ_DATABASE_SCHEMA} \
--force
make authz/db/seed

@echo ""
@echo "${TERM_GREEN}🛠️ Setting up Authz test database${TERM_NO_COLOR}"
Expand All @@ -64,6 +65,14 @@ authz/db/create-migration:
--schema ${AUTHZ_DATABASE_SCHEMA} \
--name ${NAME}

# To maintain seed data within their respective modules and then import them
# into the main seed.ts file for execution, it's necessary to compile the
# project and resolve its path aliases before running the vanilla JavaScript
# seed entry point.
authz/db/seed:
npx dotenv -e ${AUTHZ_PROJECT_DIR}/.env -- \
ts-node -r tsconfig-paths/register --project ${AUTHZ_PROJECT_DIR}/tsconfig.app.json ${AUTHZ_PROJECT_DIR}/src/shared/module/persistence/seed.ts

# === Testing ===

authz/test/db/setup:
Expand Down
Loading

0 comments on commit 744ea93

Please sign in to comment.