chore: fix coverage config #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dialyzer | |
on: push | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
Dialyzer: | |
runs-on: ubuntu-latest | |
env: | |
MIX_ENV: test | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: '1.16.1' # Define the elixir version [required] | |
otp-version: '26.2.1' # Define the OTP version [required] | |
- name: Restore dependencies cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
_build | |
deps | |
dialyzer | |
key: ${{ runner.os }}-dialyzer-${{ hashFiles('**/mix.lock') }}-${{ hashFiles('./.tool-versions') }} | |
restore-keys: ${{ runner.os }}-dialyzer- | |
- name: Install Dependencies | |
run: mix deps.get | |
- name: Compile Project | |
run: mix compile --warnings-as-errors | |
- name: Run Dialyzer | |
run: mkdir -p dialyzer && mix dialyzer | |