Skip to content

Commit e484517

Browse files
committed
Add lint alias
1 parent 3efae27 commit e484517

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ jobs:
3030
restore-keys: ${{ matrix.os }}-otp_${{ matrix.otp }}-elixir_${{ matrix.elixir }}-mix_
3131
- run: mix deps.get
3232
- run: mix deps.compile
33-
- run: mix format --check-formatted
34-
- run: mix deps.unlock --check-unused
35-
- run: mix credo --strict --all
33+
- run: mix lint
3634

3735
test:
3836
runs-on: ${{ matrix.os }}

mix.exs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ defmodule EctoSQLite3.MixProject do
1616
description: description(),
1717
test_paths: test_paths(System.get_env("EXQLITE_INTEGRATION")),
1818
elixirc_paths: elixirc_paths(Mix.env()),
19+
aliases: aliases(),
1920

2021
# Docs
2122
name: "Ecto SQLite3",
@@ -85,4 +86,14 @@ defmodule EctoSQLite3.MixProject do
8586

8687
defp test_paths(nil), do: ["test"]
8788
defp test_paths(_any), do: ["integration_test"]
89+
90+
defp aliases do
91+
[
92+
lint: [
93+
"format --check-formatted",
94+
"deps.unlock --check-unused",
95+
"credo --all --strict"
96+
]
97+
]
98+
end
8899
end

0 commit comments

Comments
 (0)