Skip to content

Commit

Permalink
no dialyzer for now
Browse files Browse the repository at this point in the history
  • Loading branch information
nathany-copia committed Sep 26, 2024
1 parent 2038a05 commit 4baa12d
Showing 1 changed file with 1 addition and 43 deletions.
44 changes: 1 addition & 43 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,46 +36,4 @@ jobs:
run: mix format --check-formatted
- name: Run Elixir tests
run: mix coveralls
dialyzer:
name: "Dialyzer"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Elixir
id: beam
uses: erlef/setup-beam@v1
with:
otp-version: "27.1"
elixir-version: "1.17.3"
- uses: actions/cache@v4
id: cache
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: mix deps.get
# Don't cache PLTs based on mix.lock hash, as Dialyzer can incrementally update even old ones
# Cache key based on Elixir & Erlang version (also useful when running in matrix)
- name: Restore PLT cache
uses: actions/cache@v4
id: plt_cache
with:
key: |
plt-${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}
restore-keys: |
plt-${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}
path: |
priv/plts
- name: Compile
run: mix compile --warnings-as-errors
# Create PLTs if no cache was found
- name: Create PLTs
if: steps.plt_cache.outputs.cache-hit != 'true'
run: mix dialyzer --plt
- name: Run dialyzer
run: mix dialyzer --format github

0 comments on commit 4baa12d

Please sign in to comment.