Skip to content

Commit 2d59c20

Browse files
committed
actually run dialyzer and formatter
1 parent 0cbfed9 commit 2d59c20

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,52 +19,33 @@ jobs:
1919
- elixir: 1.11.x
2020
otp: 22.3.x
2121
tests_may_fail: false
22-
check_unused_deps: false
2322
- elixir: 1.11.x
2423
otp: 23.3.x
2524
tests_may_fail: false
26-
check_unused_deps: false
2725
- elixir: 1.12.x
2826
otp: 23.3.x
2927
tests_may_fail: false
30-
check_unused_deps: false
3128
- elixir: 1.13.x
3229
otp: 22.3.x
3330
tests_may_fail: false
34-
check_unused_deps: true
35-
warnings_as_errors: false
3631
- elixir: 1.13.x
3732
otp: 23.3.x
3833
tests_may_fail: false
39-
check_unused_deps: false
40-
warnings_as_errors: false
4134
- elixir: 1.13.x
4235
otp: 24.3.x
4336
tests_may_fail: false
44-
check_unused_deps: false
45-
warnings_as_errors: false
4637
- elixir: 1.13.x
4738
otp: 25.x
4839
tests_may_fail: false
49-
check_unused_deps: false
50-
warnings_as_errors: false
5140
- elixir: 1.14.x
5241
otp: 23.3.x
5342
tests_may_fail: false
54-
check_unused_deps: false
55-
warnings_as_errors: false
5643
- elixir: 1.14.x
5744
otp: 24.3.x
5845
tests_may_fail: false
59-
check_unused_deps: false
60-
warnings_as_errors: false
6146
- elixir: 1.14.x
6247
otp: 25.x
6348
tests_may_fail: false
64-
warnings_as_errors: false
65-
check_formatted: true
66-
check_unused_deps: true
67-
run_dialyzer: true
6849
env:
6950
MIX_ENV: test
7051
steps:
@@ -78,10 +59,6 @@ jobs:
7859
mix local.hex --force
7960
mix local.rebar --force
8061
mix deps.get --only test
81-
- run: mix format --check-formatted
82-
if: matrix.check_formatted
83-
- run: mix compile --warnings-as-errors
84-
if: matrix.warnings_as_errors
8562
- run: mix test || ${{ matrix.tests_may_fail }}
8663

8764
static_analysis:
@@ -113,5 +90,5 @@ jobs:
11390
mix deps.get
11491
- name: Restore timestamps to prevent unnecessary recompilation
11592
run: IFS=$'\n'; for f in $(git ls-files); do touch -d "$(git log -n 1 --pretty='%cI' -- $f)" "$f"; done
93+
- run: mix format --check-formatted
11694
- run: mix dialyzer
117-
if: matrix.run_dialyzer

0 commit comments

Comments
 (0)