Skip to content

Commit

Permalink
Add CI badge and command for GitHub Actions (#3)
Browse files Browse the repository at this point in the history
Forgot to add this in the previous PR.
  • Loading branch information
terenceponce authored Feb 17, 2024
1 parent 7c83cf0 commit f1bd095
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,8 @@ jobs:
- name: Compile
run: mix compile --warnings-as-errors

- name: Run Linter
run: mix lint.ci

- name: Run Tests
run: mix test
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# DashFloat
# DashFloat API

[![gh-actions](https://github.com/DashFloat/api/workflows/CI/badge.svg)](https://github.com/DashFloat/api/actions?workflow=CI)

To start your Phoenix server:

Expand Down
1 change: 0 additions & 1 deletion lib/dash_float_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ defmodule DashFloatWeb.Router do

# Enable Swoosh mailbox preview in development
if Application.compile_env(:dash_float, :dev_routes) do

scope "/dev" do
pipe_through [:fetch_session, :protect_from_forgery]

Expand Down
4 changes: 3 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ defmodule DashFloat.MixProject do
setup: ["deps.get", "ecto.setup"],
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"]
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"],
lint: ["format"],
"lint.ci": ["format --check-formatted"]
]
end
end

0 comments on commit f1bd095

Please sign in to comment.