File tree 1 file changed +12
-16
lines changed
1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change 1
- on : push
1
+ name : " provider"
2
+
3
+ on : [push, pull_request]
2
4
3
5
jobs :
4
6
test :
5
7
runs-on : ubuntu-latest
6
8
7
9
env :
8
- CACHE_VERSION : v1
10
+ CACHE_VERSION : v2
11
+
9
12
steps :
10
13
- uses : actions/checkout@v2
11
14
12
- - uses : erlef/setup-beam @v1
15
+ - uses : erlef/setup-elixir @v1
13
16
with :
14
17
otp-version : 26.0
15
18
elixir-version : 1.15.4
@@ -32,23 +35,16 @@ jobs:
32
35
build-${{ env.CACHE_VERSION }}-${{ github.ref }}-
33
36
build-${{ env.CACHE_VERSION }}-
34
37
35
- - name : Fetch deps
36
- run : mix deps.get
38
+ - run : mix deps.get
37
39
38
40
- name : Compile project
39
41
run : |
40
42
MIX_ENV=test mix compile --warnings-as-errors
41
43
MIX_ENV=dev mix compile --warnings-as-errors
42
44
MIX_ENV=prod mix compile --warnings-as-errors
43
45
44
- - name : Run linter checks
45
- run : mix credo list
46
-
47
- - name : Check code format
48
- run : mix format --check-formatted
49
-
50
- - name : Run dialyzer
51
- run : mix dialyzer
52
-
53
- - name : Run tests
54
- run : mix test
46
+ - run : mix format --check-formatted
47
+ - run : mix test
48
+ - run : mix docs
49
+ - run : MIX_ENV=test mix credo list
50
+ - run : mix dialyzer
You can’t perform that action at this time.
0 commit comments