diff --git a/.formatter.exs b/.formatter.exs index 11181c6..287dfce 100644 --- a/.formatter.exs +++ b/.formatter.exs @@ -11,5 +11,5 @@ "priv/*/seeds.exs" ], &Path.wildcard(&1, match_dot: true) - ) -- [".scratch.ex", ".notes.ex"] + ) -- [".scratch.ex", ".notes.ex", "lib/bike_shop_web/components/core_components.ex"] ] diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e6e91ce..8406a6a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -117,26 +117,7 @@ jobs: mix deps.get mix ecto.create - name: Check Test Coverage - # run: mix coveralls.html - run: mix coveralls.github - run_tests: - - uses: actions/checkout@v3 - - name: Set up Elixir - uses: erlef/setup-beam@61e01a43a562a89bfc54c7f9a378ff67b03e4a21 # v1.16.0 - strategy: - matrix: - elixir: [1.14] - otp: [26.0] # [Required] Define the Erlang/OTP version - - name: Restore dependencies cache - uses: actions/cache@v3 - with: - path: deps - key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} - restore-keys: ${{ runner.os }}-mix- - - name: Install dependencies - run: mix deps.get - - name: Run tests - run: mix test + run: mix coveralls.html services: pg: image: postgres:12 diff --git a/README.md b/README.md index 7bdbfae..eb6d3e0 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,7 @@ # BikesOfBurningMan BikeShop __Demo BikeShop Built with Phoenix LiveView__ -![dialyxir check](https://github.com/marka2g/bike_shop/actions/workflows/dialyxir.yml/badge.svg) -![tests passing](https://github.com/marka2g/bike_shop/actions/workflows/tests.yml/badge.svg) -![security check](https://github.com/marka2g/bike_shop/actions/workflows/security.yml/badge.svg) - +![build status](https://github.com/marka2g/bike_shop/actions/workflows/main.yml/badge.svg) ## Notable Dependencies >1. [credo](https://github.com/rrrene/credo) - static code analysis tool for Elixir diff --git a/coveralls.json b/coveralls.json index 919221c..d755d56 100644 --- a/coveralls.json +++ b/coveralls.json @@ -9,7 +9,8 @@ "lib/bike_shop_web/components/core_components.ex", "lib/bike_shop_web/components/layouts.ex", "lib/bike_shop/repo.ex", - "lib/bike_shop_web/controllers/error_html" + "lib/bike_shop_web/controllers/error_html", + "lib/bike_shop_web/components/layouts/top_nav_component.ex" ], "coverage_options": { "treat_no_relevant_lines_as_covered": true, diff --git a/lib/bike_shop_web/components/core_components.ex b/lib/bike_shop_web/components/core_components.ex index df5bd2c..27ce44f 100644 --- a/lib/bike_shop_web/components/core_components.ex +++ b/lib/bike_shop_web/components/core_components.ex @@ -16,9 +16,11 @@ defmodule BikeShopWeb.CoreComponents do """ use Phoenix.Component - alias Phoenix.LiveView.JS import BikeShopWeb.Gettext + alias Phoenix.HTML.Form + alias Phoenix.LiveView.JS + @doc """ Renders a modal. @@ -50,7 +52,7 @@ defmodule BikeShopWeb.CoreComponents do data-cancel={JS.exec(@on_cancel, "phx-remove")} class="relative z-50 hidden" > -