Skip to content

Commit

Permalink
Update home_live.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
brianberlin committed Feb 29, 2024
1 parent e8d2756 commit 565435a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 31 deletions.
50 changes: 22 additions & 28 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ jobs:
path: _build
key: build-${{ runner.os }}-${{ env.OTP_VERSION_SPEC }}-${{ env.ELIXIR_VERSION_SPEC }}-${{ hashFiles('mix.lock') }}

- name: Restore PLT cache
uses: actions/cache@v2
id: plt-cache
with:
key: plt-${{ runner.os }}-${{ env.OTP_VERSION_SPEC }}-${{ env.ELIXIR_VERSION_SPEC }}
path: priv/plts
# - name: Restore PLT cache
# uses: actions/cache@v2
# id: plt-cache
# with:
# key: plt-${{ runner.os }}-${{ env.OTP_VERSION_SPEC }}-${{ env.ELIXIR_VERSION_SPEC }}
# path: priv/plts

- name: Install Mix Dependencies
if: steps.deps-cache.outputs.cache-hit != 'true'
Expand All @@ -60,14 +60,14 @@ jobs:
if: steps.build-cache.outputs.cache-hit != 'true'
run: mix compile

- name: Check Formatting
run: mix format --check-formatted
# - name: Check Formatting
# run: mix format --check-formatted

- name: Run Credo
run: mix credo --strict
# - name: Run Credo
# run: mix credo --strict

- name: Run Tests
run: mix test --cover --export-coverage default
run: mix test --cover

- name: Coverage Reporter
uses: peek-travel/coverage-reporter@partitioned-lcov-results
Expand All @@ -77,18 +77,12 @@ jobs:
lcov_path: cover/lcov.info
coverage_threshold: 80

- name: Create Coverage Report Artifact
uses: actions/upload-artifact@v3
with:
name: code-coverage
path: cover/reports/coverage_report.txt

- name: Create PLTs
if: steps.plt-cache.outputs.cache-hit != 'true'
run: MIX_ENV=dev mix dialyzer --plt
# - name: Create PLTs
# if: steps.plt-cache.outputs.cache-hit != 'true'
# run: MIX_ENV=dev mix dialyzer --plt

- name: Run dialyzer
run: MIX_ENV=dev mix dialyzer --format github
# - name: Run dialyzer
# run: MIX_ENV=dev mix dialyzer --format github

- name: Save Build Cache
uses: actions/cache/save@v3
Expand All @@ -102,9 +96,9 @@ jobs:
path: deps
key: deps-${{ runner.os }}-${{ env.OTP_VERSION_SPEC }}-${{ env.ELIXIR_VERSION_SPEC }}-${{ hashFiles('mix.lock') }}

- name: Save PLT cache
id: plt-cache-save
uses: actions/cache/save@v3
with:
path: priv/plts
key: plt-${{ runner.os }}-${{ env.OTP_VERSION_SPEC }}-${{ env.ELIXIR_VERSION_SPEC }}
# - name: Save PLT cache
# id: plt-cache-save
# uses: actions/cache/save@v3
# with:
# path: priv/plts
# key: plt-${{ runner.os }}-${{ env.OTP_VERSION_SPEC }}-${{ env.ELIXIR_VERSION_SPEC }}
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
erlang 26.0
elixir 1.14.5-otp-26
elixir 1.15.7-otp-26
erlang 26.1
5 changes: 4 additions & 1 deletion lib/brian_web/live/home_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ defmodule BrianWeb.HomeLive do
</a>
</li>
<li>
<a href="https://web.archive.org/web/20210801113025/https://revelry.co/resources/team/brian-berlin/" target="_blank">
<a
href="https://web.archive.org/web/20210801113025/https://revelry.co/resources/team/brian-berlin/"
target="_blank"
>
Get to Know Brian Berlin: Dad, Amateur Car Racer, and Software Engineer
</a>
</li>
Expand Down

0 comments on commit 565435a

Please sign in to comment.