Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
217 changes: 0 additions & 217 deletions .credo.exs

This file was deleted.

11 changes: 9 additions & 2 deletions .formatter.exs
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
# Used by "mix format"
locals_without_parens = [error_tracker_dashboard: 1, error_tracker_dashboard: 2]

# Parse SemVer minor elixir version from project configuration
# eg `"~> 1.15"` version requirement will yield `"1.15"`
[elixir_minor_version | _] = Regex.run(~r/([\d\.]+)/, Mix.Project.config()[:elixir])

[
import_deps: [:ecto, :ecto_sql, :plug, :phoenix],
inputs: ["{mix,.formatter,dev,dev.*}.exs", "{config,lib,test}/**/*.{heex,ex,exs}"],
plugins: [Phoenix.LiveView.HTMLFormatter],
plugins: [Phoenix.LiveView.HTMLFormatter, Styler],
locals_without_parens: locals_without_parens,
export: [locals_without_parens: locals_without_parens]
export: [locals_without_parens: locals_without_parens],
styler: [
minimum_supported_elixir_version: "#{elixir_minor_version}.0"
]
]
3 changes: 0 additions & 3 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ jobs:
- name: Check application compile warnings
run: mix compile --force --warnings-as-errors

- name: Check Credo warnings
run: mix credo

- name: Run Tests - SQLite3
run: mix test
env:
Expand Down
49 changes: 23 additions & 26 deletions config/dev.example.exs
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
import Config

config :tailwind,
version: "3.4.3",
default: [
args: ~w(
--config=tailwind.config.js
--input=css/app.css
--output=../priv/static/app.css
),
cd: Path.expand("../assets", __DIR__)
]

config :bun,
version: "1.1.18",
default: [
Expand All @@ -19,32 +8,40 @@ config :bun,
env: %{}
]

# PostgreSQL adapter
#
# To use SQLite3 on your local development machine uncomment these lines and
# comment the lines of other adapters.

config :error_tracker, :ecto_adapter, :postgres

config :error_tracker, ErrorTrackerDev.Repo,
url: "ecto://postgres:postgres@127.0.0.1/error_tracker_dev"

# MySQL/MariaDB adapter
#
# To use MySQL/MariaDB on your local development machine uncomment these lines and
# comment the lines of other adapters.

#
# config :error_tracker, :ecto_adapter, :mysql

#
# config :error_tracker, ErrorTrackerDev.Repo,
# url: "ecto://root:root@127.0.0.1/error_tracker_dev"

#
# SQLite3 adapter
#
# To use SQLite3 on your local development machine uncomment these lines and
# comment the lines of other adapters.

#
# config :error_tracker, :ecto_adapter, :sqlite3

#
# config :error_tracker, ErrorTrackerDev.Repo,
# database: System.get_env("SQLITE_DB") || "dev.db"
#
# PostgreSQL adapter
#
# To use PostgreSQL on your local development machine uncomment these lines and
# comment the lines of other adapters.
config :error_tracker, ErrorTrackerDev.Repo, url: "ecto://postgres:postgres@127.0.0.1/error_tracker_dev"
config :error_tracker, :ecto_adapter, :postgres

config :tailwind,
version: "3.4.3",
default: [
args: ~w(
--config=tailwind.config.js
--input=css/app.css
--output=../priv/static/app.css
),
cd: Path.expand("../assets", __DIR__)
]
25 changes: 14 additions & 11 deletions config/test.example.exs
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
import Config

config :error_tracker, ErrorTracker.Test.Repo,
url: "ecto://postgres:postgres@127.0.0.1/error_tracker_test",
pool: Ecto.Adapters.SQL.Sandbox,
log: false
alias Ecto.Adapters.SQL.Sandbox
alias ErrorTracker.Test.Repo

config :error_tracker, ErrorTracker.Test.MySQLRepo,
url: "ecto://root:root@127.0.0.1/error_tracker_test",
pool: Ecto.Adapters.SQL.Sandbox,
config :error_tracker, ErrorTracker.Test.LiteRepo,
database: "priv/lite_repo/test.db",
pool: Sandbox,
log: false,
# Use the same migrations as the PostgreSQL repo
priv: "priv/repo"

config :error_tracker, ErrorTracker.Test.LiteRepo,
database: "priv/lite_repo/test.db",
pool: Ecto.Adapters.SQL.Sandbox,
config :error_tracker, ErrorTracker.Test.MySQLRepo,
url: "ecto://root:root@127.0.0.1/error_tracker_test",
pool: Sandbox,
log: false,
# Use the same migrations as the PostgreSQL repo
priv: "priv/repo"

config :error_tracker, ecto_repos: [ErrorTracker.Test.Repo]
config :error_tracker, Repo,
url: "ecto://postgres:postgres@127.0.0.1/error_tracker_test",
pool: Sandbox,
log: false

config :error_tracker, ecto_repos: [Repo]

# Repo is selected in the test_helper.exs based on the given ENV vars
config :error_tracker, otp_app: :error_tracker
Loading
Loading