From ab6aadfe03c366728044ff3cea1e398564947c41 Mon Sep 17 00:00:00 2001 From: Marcel Otto Date: Fri, 9 Oct 2020 21:54:01 +0200 Subject: [PATCH] Setup Dialyzer in GitHub Actions workflow --- .github/workflows/ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c36a9e2..19ed0f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,3 +59,19 @@ jobs: - name: Run tests run: mix coveralls.github + + - 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