Skip to content

fix dialyzer workflow by using v4 of actions/cache #25

fix dialyzer workflow by using v4 of actions/cache

fix dialyzer workflow by using v4 of actions/cache #25

Workflow file for this run

name: Elixir CI
on:
push:
branches: [ "**" ]
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Erlang & Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: '1.15.6'
otp-version: '26.0'
- name: Restore dependencies cache
uses: actions/cache@v4
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test
- name: Check formatting
run: mix format --check-formatted
- name: Retrieve PLT Cache
uses: actions/cache@v4
with:
path: priv/plts
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-plts-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Run Dialyzer
run: mix dialyzer --halt-exit-status --format short