Skip to content

Commit

Permalink
Separate dialyzer job
Browse files Browse the repository at this point in the history
  • Loading branch information
michalmuskala committed Dec 17, 2021
1 parent ad06ac7 commit 7f75187
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
mix_test:
name: mix test (Elixir ${{matrix.elixir}} | OTP ${{matrix.otp}})
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -37,7 +37,6 @@ jobs:
- elixir: 1.13.x
otp: 24
warnings_as_errors: true
static_analysis: true
env:
MIX_ENV: test
steps:
Expand All @@ -62,5 +61,28 @@ jobs:
- run: mix compile --warnings-as-errors
if: matrix.warnings_as_errors
- run: mix test
dialyzer:
name: mix dialyzer
runs-on: ubuntu-latest
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: 24
elixir-version: 1.13.x
- name: Install Dependencies
run: |
mix local.hex --force
mix local.rebar --force
mix deps.get --only test
- name: Cache build artifacts
uses: actions/cache@v2
with:
path: |
~/.hex
~/.mix
_build
key: dialyzer
- run: mix dialyzer --halt-exit-status
if: matrix.static_analysis

0 comments on commit 7f75187

Please sign in to comment.