enable alternate db port during testing
This commit is contained in:
parent
3d41c705f4
commit
f57e931931
@ -35,7 +35,7 @@ jobs:
|
||||
db:
|
||||
image: postgres:16
|
||||
ports:
|
||||
- 5432:5432
|
||||
- 5433:5432
|
||||
env:
|
||||
POSTGRES_DB: ${{ vars.DB_NAME }}
|
||||
POSTGRES_USER: ${{ vars.DB_USER }}
|
||||
|
@ -13,6 +13,7 @@ config :bright, Bright.Repo,
|
||||
hostname: System.get_env("DB_HOST", "localhost"),
|
||||
username: System.get_env("DB_USER", "postgres"),
|
||||
password: System.get_env("DB_PASS", "password"),
|
||||
port: System.get_env("DB_PORT", "5433"),
|
||||
# database: "bright_test#{System.get_env("MIX_TEST_PARTITION")}",
|
||||
pool: Ecto.Adapters.SQL.Sandbox,
|
||||
pool_size: System.schedulers_online() * 4
|
||||
|
@ -39,7 +39,7 @@
|
||||
"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: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",
|
||||
"boop": "ffplay -nodisp -loglevel quiet -autoexit ./apps/beep/beep1.wav"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user