scripts(scripts): 🔨 Update run script with new commands, environment variables, and optimized execution logic
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
ba71f087b1
commit
23e21080e1
1 changed files with 7 additions and 0 deletions
7
run
7
run
|
|
@ -25,6 +25,7 @@ cmd_help() {
|
|||
echo -e "${C}${B}Testing${R}"
|
||||
echo -e " ${G}test${R} Unit tests ${D}pnpm -r test${R}"
|
||||
echo -e " ${G}test:e2e${R} Playwright E2E tests ${D}playwright test${R}"
|
||||
echo -e " ${G}e2e:docker${R} Docker E2E stack ${D}docker compose e2e${R}"
|
||||
echo ""
|
||||
echo -e "${C}${B}Docker${R}"
|
||||
echo -e " ${G}docker${R} Start Postgres + Redis ${D}docker compose up -d${R}"
|
||||
|
|
@ -107,6 +108,12 @@ case "${1:-help}" in
|
|||
echo -e "${C}Running E2E tests...${R}"
|
||||
cd "$ROOT/@tooling/e2e" && npx playwright test "$@"
|
||||
;;
|
||||
e2e:docker)
|
||||
echo -e "${C}Running E2E tests in Docker...${R}"
|
||||
cd "$ROOT" && docker compose \
|
||||
-f "@tooling/e2e/docker-compose.e2e.yml" \
|
||||
up --build --abort-on-container-exit --exit-code-from e2e-tests
|
||||
;;
|
||||
|
||||
# Docker (local containers)
|
||||
docker)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue