mirror of
https://github.com/usetrmnl/byos_phoenix.git
synced 2026-08-13 14:28:44 -07:00
* tests: run tests on PRs as well * chore: bump actions * fix: error in api_key causing test fail for puppeteer * tests: ensure server is running for tests * fix: remove curl on server startup * fix: enable server in test instead of workflow
29 lines
920 B
Elixir
29 lines
920 B
Elixir
import Config
|
|
|
|
# Configure your database
|
|
#
|
|
# The MIX_TEST_PARTITION environment variable can be used
|
|
# to provide built-in test partitioning in CI environment.
|
|
# Run `mix help test` for more information.
|
|
config :trmnl, Trmnl.Repo,
|
|
database: Path.expand("../trmnl_test.db", __DIR__),
|
|
pool_size: 5,
|
|
pool: Ecto.Adapters.SQL.Sandbox
|
|
|
|
# We don't run a server during test. If one is required,
|
|
# you can enable the server option below.
|
|
config :trmnl, TrmnlWeb.Endpoint,
|
|
http: [ip: {127, 0, 0, 1}, port: 4002],
|
|
secret_key_base: "CfoEoRVbOD9o671wn4Cv0nrhFNo+LSd1p+8KessZLLsGzWhtACJ0PxmUQJwGAeh6",
|
|
server: true
|
|
|
|
# Print only warnings and errors during test
|
|
config :logger, level: :warning
|
|
|
|
# Initialize plugs at runtime for faster test compilation
|
|
config :phoenix, :plug_init_mode, :runtime
|
|
|
|
# Enable helpful, but potentially expensive runtime checks
|
|
config :phoenix_live_view,
|
|
enable_expensive_runtime_checks: true
|