File tree 1 file changed +18
-11
lines changed
1 file changed +18
-11
lines changed Original file line number Diff line number Diff line change 5
5
branches : [ main ]
6
6
pull_request :
7
7
workflow_dispatch :
8
+ schedule :
9
+ - cron : ' 0 4 * * 2,6'
8
10
9
11
jobs :
10
12
test :
@@ -13,22 +15,23 @@ jobs:
13
15
strategy :
14
16
fail-fast : false
15
17
matrix :
16
- include :
18
+ versions :
17
19
- elixir : ' 1.13.2'
18
20
otp : ' 24.1'
19
- current_version : false
21
+ with_linting : false
20
22
- elixir : ' 1.14.0'
21
23
otp : ' 25.0'
22
- current_version : false
24
+ with_linting : false
23
25
- elixir : ' 1.15.0'
24
26
otp : ' 26.0'
25
- current_version : true
27
+ with_linting : true
26
28
- elixir : ' 1.16.0'
27
29
otp : ' 26.2'
28
- current_version : true
30
+ with_linting : true
29
31
- elixir : ' 1.17.0'
30
32
otp : ' 27.0'
31
- current_version : true
33
+ with_linting : true
34
+ mix_lock : ['with_mix_lock', 'without_mix_lock']
32
35
33
36
steps :
34
37
- name : Checkout code
37
40
- name : Use Elixir
38
41
uses : erlef/setup-beam@a34c98fd51e370b4d4981854aba1eb817ce4e483
39
42
with :
40
- otp-version : ${{matrix.otp}}
41
- elixir-version : ${{matrix.elixir}}
43
+ otp-version : ${{matrix.versions. otp}}
44
+ elixir-version : ${{matrix.versions. elixir}}
42
45
43
46
- name : Set cache key
44
47
id : set_cache_key
57
60
path : deps
58
61
key : mix-${{ steps.set_cache_key.outputs.cache_key }}-v1
59
62
63
+ - name : Unlock Mix Dependencies
64
+ if : matrix.mix_lock == 'without_mix_lock'
65
+ run : mix deps.unlock --all
66
+
60
67
- name : Install Mix Dependencies
61
- if : steps.mix-cache.outputs.cache-hit != 'true'
68
+ if : steps.mix-cache.outputs.cache-hit != 'true' || matrix.mix_lock == 'without_mix_lock'
62
69
run : mix deps.get
63
70
64
71
- name : Build Project
@@ -97,11 +104,11 @@ jobs:
97
104
98
105
- name : Run Dialyzer
99
106
run : mix dialyzer
100
- if : ${{ matrix.current_version }}
107
+ if : ${{ matrix.versions.with_linting }}
101
108
102
109
- name : Run format check
103
110
run : mix format --check-formatted
104
- if : ${{ matrix.current_version }}
111
+ if : ${{ matrix.versions.with_linting }}
105
112
106
113
all_tests_passing :
107
114
if : ${{ always() }}
You can’t perform that action at this time.
0 commit comments