Skip to content

Commit

Permalink
Skip PLT caching and creation if not running dialyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Jun 14, 2024
1 parent a325e4e commit cc76609
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
- name: Restore cached PLTs
uses: actions/cache@v4
id: plt_cache
if: ${{ matrix.dialyzer }}
with:
key: |
${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.erlang }}-plt
Expand All @@ -82,7 +83,7 @@ jobs:
# Create PLTs if no cached PLTs were found
- name: Create PLTs
if: steps.plt_cache.outputs.cache-hit != 'true'
if: ${{ matrix.dialyzer }} && steps.plt_cache.outputs.cache-hit != 'true'
run: MIX_ENV=test mix dialyzer --plt

- name: Run dialyzer
Expand Down

0 comments on commit cc76609

Please sign in to comment.