Skip to content

Commit 7f75187

Browse files
committed
Separate dialyzer job
1 parent ad06ac7 commit 7f75187

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
mix_test:
1111
name: mix test (Elixir ${{matrix.elixir}} | OTP ${{matrix.otp}})
12-
runs-on: ubuntu-18.04
12+
runs-on: ubuntu-latest
1313
strategy:
1414
fail-fast: false
1515
matrix:
@@ -37,7 +37,6 @@ jobs:
3737
- elixir: 1.13.x
3838
otp: 24
3939
warnings_as_errors: true
40-
static_analysis: true
4140
env:
4241
MIX_ENV: test
4342
steps:
@@ -62,5 +61,28 @@ jobs:
6261
- run: mix compile --warnings-as-errors
6362
if: matrix.warnings_as_errors
6463
- run: mix test
64+
dialyzer:
65+
name: mix dialyzer
66+
runs-on: ubuntu-latest
67+
env:
68+
MIX_ENV: test
69+
steps:
70+
- uses: actions/checkout@v2
71+
- uses: erlef/setup-beam@v1
72+
with:
73+
otp-version: 24
74+
elixir-version: 1.13.x
75+
- name: Install Dependencies
76+
run: |
77+
mix local.hex --force
78+
mix local.rebar --force
79+
mix deps.get --only test
80+
- name: Cache build artifacts
81+
uses: actions/cache@v2
82+
with:
83+
path: |
84+
~/.hex
85+
~/.mix
86+
_build
87+
key: dialyzer
6588
- run: mix dialyzer --halt-exit-status
66-
if: matrix.static_analysis

0 commit comments

Comments
 (0)