enable alternate db port during testing
Some checks failed
ci / build (push) Successful in 2m10s
ci / Tests & Checks (push) Failing after 14s

This commit is contained in:
CJ_Clippy 2025-02-20 08:59:14 -08:00
parent 3d41c705f4
commit f57e931931
3 changed files with 3 additions and 2 deletions

View File

@ -35,7 +35,7 @@ jobs:
db: db:
image: postgres:16 image: postgres:16
ports: ports:
- 5432:5432 - 5433:5432
env: env:
POSTGRES_DB: ${{ vars.DB_NAME }} POSTGRES_DB: ${{ vars.DB_NAME }}
POSTGRES_USER: ${{ vars.DB_USER }} POSTGRES_USER: ${{ vars.DB_USER }}

View File

@ -13,6 +13,7 @@ config :bright, Bright.Repo,
hostname: System.get_env("DB_HOST", "localhost"), hostname: System.get_env("DB_HOST", "localhost"),
username: System.get_env("DB_USER", "postgres"), username: System.get_env("DB_USER", "postgres"),
password: System.get_env("DB_PASS", "password"), password: System.get_env("DB_PASS", "password"),
port: System.get_env("DB_PORT", "5433"),
# database: "bright_test#{System.get_env("MIX_TEST_PARTITION")}", # database: "bright_test#{System.get_env("MIX_TEST_PARTITION")}",
pool: Ecto.Adapters.SQL.Sandbox, pool: Ecto.Adapters.SQL.Sandbox,
pool_size: System.schedulers_online() * 4 pool_size: System.schedulers_online() * 4

View File

@ -39,7 +39,7 @@
"bright:dev": "cd ./apps/bright && dotenvx run -f ../../.kamal/secrets.development -e MIX_ENV=dev -- mix phx.server", "bright:dev": "cd ./apps/bright && dotenvx run -f ../../.kamal/secrets.development -e MIX_ENV=dev -- mix phx.server",
"bright:test:unit:watch": "cd ./apps/bright && pnpx chokidar-cli '**/*' -i \"deps/**\" -i '_build/**' -c 'mix test --only=unit'", "bright:test:unit:watch": "cd ./apps/bright && pnpx chokidar-cli '**/*' -i \"deps/**\" -i '_build/**' -c 'mix test --only=unit'",
"bright:act": "cd ./apps/bright && act --env MIX_ENV=test -W ./.gitea/workflows/tests.yaml --secret-file .kamal/secrets.development", "bright:act": "cd ./apps/bright && act --env MIX_ENV=test -W ./.gitea/workflows/tests.yaml --secret-file .kamal/secrets.development",
"test": "act -W ./.gitea/workflows/tests.yaml --secret-file .kamal/secrets.development && devbox run beep || devbox run boop", "test": "act -W ./.gitea/workflows/tests.yaml --secret-file .kamal/secrets.testing --var-file .kamal/secrets.testing && devbox run beep || devbox run boop",
"beep": "ffplay -nodisp -loglevel quiet -autoexit ./apps/beep/beep2.wav", "beep": "ffplay -nodisp -loglevel quiet -autoexit ./apps/beep/beep2.wav",
"boop": "ffplay -nodisp -loglevel quiet -autoexit ./apps/beep/beep1.wav" "boop": "ffplay -nodisp -loglevel quiet -autoexit ./apps/beep/beep1.wav"
} }