Skip to content

Commit

Permalink
Remove PLTs from Hex package
Browse files Browse the repository at this point in the history
Closes #68.
  • Loading branch information
whatyouhide committed Oct 17, 2023
1 parent 3f8f975 commit 5080d20
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ on:

jobs:
test:
name: Test (Elixir ${{matrix.elixir}} | Erlang/OTP ${{matrix.otp}})
runs-on: ubuntu-20.04
name: Test (Elixir ${{ matrix.elixir }} | Erlang/OTP ${{ matrix.otp }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- otp: "26.0.2"
elixir: "1.15.4"
- otp: "26.1"
elixir: "1.15"
coverage: true
lint: true
dialyzer: true
Expand All @@ -31,7 +31,7 @@ jobs:

steps:
- name: Clone this repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Erlang/OTP and Elixir
uses: erlef/setup-beam@v1
Expand All @@ -58,15 +58,15 @@ jobs:
# 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: Cache Dialyzer's PLT
uses: actions/cache@v2
uses: actions/cache@v3
id: cache-plt
with:
path: priv/plts
path: plts
key: ${{ runner.os }}-otp${{ matrix.otp }}-elixir${{ matrix.elixir }}

# Create PLTs if no cache was found
- name: Create PLTs
if: steps.cache-plt.outputs.cache-hit != 'true'
if: steps.cache-plt.outputs.cache-hit != 'true' && matrix.dialyzer
run: mix dialyzer --plt

- name: Check formatting
Expand All @@ -82,13 +82,15 @@ jobs:
if: ${{ matrix.lint }}

- name: Run tests
run: mix test --trace
if: ${{!matrix.coverage}}
run: mix test
if: ${{ !matrix.coverage }}

- name: Run tests with coverage
run: mix coveralls.github
if: ${{matrix.coverage}}
if: ${{ matrix.coverage }}

- name: Run Dialyzer
run: mix dialyzer --format github
if: ${{matrix.dialyzer}}
if: ${{ matrix.dialyzer }}
run: |
mkdir -p ./plts
mix dialyzer --format github
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
/cover
/deps
/doc
/priv/plts
/plts
erl_crash.dump
*.ez
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ defmodule Corsica.Mixfile do

# Dialyzer
dialyzer: [
plt_local_path: "priv/plts",
plt_core_path: "priv/plts"
plt_local_path: "plts",
plt_core_path: "plts"
],

# Hex
Expand Down
Empty file removed priv/plts/.gitkeep
Empty file.

0 comments on commit 5080d20

Please sign in to comment.