Skip to content

bump version 0.3.0 → 0.4.0 #12

bump version 0.3.0 → 0.4.0

bump version 0.3.0 → 0.4.0 #12

Workflow file for this run

on: push
jobs:
test:
runs-on: ubuntu-latest
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
otp: ["22.3", "23.3"]
elixir: ["1.9.4", "1.13.2"]
env:
MIX_ENV: test
DIALYZER_PLT_FILE: priv/plts/dialyzer.plt
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Fetch Deps
run: mix deps.get
- name: Compile
run: mix compile --warnings-as-errors
- name: Test
run: mix test --trace
- name: Credo
run: mix credo --strict
- name: Retrieve PLT Cache
uses: actions/cache@v1
id: plt-cache
with:
path: priv/plts
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-plts-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Create PLTs
if: steps.plt-cache.outputs.cache-hit != 'true'
run: |
mkdir -p priv/plts
mix dialyzer --plt
- name: Run dialyzer
run: mix dialyzer --no-check --halt-exit-status