@@ -7,9 +7,9 @@ name: Elixir CI
7
7
8
8
on :
9
9
push :
10
- branches : [ "main" ]
10
+ branches : ["main"]
11
11
pull_request :
12
- branches : [ "main" ]
12
+ branches : ["main"]
13
13
14
14
permissions :
15
15
contents : read
@@ -27,64 +27,63 @@ jobs:
27
27
strategy :
28
28
matrix :
29
29
variation :
30
- - otp : ' 27.x'
31
- elixir : ' 1.17 '
30
+ - otp : " 27.x"
31
+ elixir : " 1.18 "
32
32
report_coverage : true
33
- # No OTP-27 and Elixir 1.16.x support
34
- - otp : ' 26.x'
35
- elixir : ' 1.17'
33
+ - otp : " 26.x"
34
+ elixir : " 1.18"
36
35
report_coverage : false
37
- - otp : ' 26.x '
38
- elixir : ' 1.16 '
36
+ - otp : " 27.x "
37
+ elixir : " 1.17 "
39
38
report_coverage : false
40
- - otp : ' 25.x '
41
- elixir : ' 1.16 '
39
+ - otp : " 26.x "
40
+ elixir : " 1.17 "
42
41
report_coverage : false
43
42
44
43
steps :
45
- - uses : actions/checkout@v3
44
+ - uses : actions/checkout@v3
46
45
47
- - name : Set up Elixir
48
- uses : erlef/setup-beam@v1
49
- with :
50
- otp-version : ${{matrix.variation.otp}}
51
- elixir-version : ${{matrix.variation.elixir}}
46
+ - name : Set up Elixir
47
+ uses : erlef/setup-beam@v1
48
+ with :
49
+ otp-version : ${{matrix.variation.otp}}
50
+ elixir-version : ${{matrix.variation.elixir}}
52
51
53
- - name : Install Solidity
54
- run : |
55
- sudo add-apt-repository ppa:ethereum/ethereum
56
- sudo apt-get update
57
- sudo apt-get install solc
52
+ - name : Install Solidity
53
+ run : |
54
+ sudo add-apt-repository ppa:ethereum/ethereum
55
+ sudo apt-get update
56
+ sudo apt-get install solc
58
57
59
- - name : Install Foundry
60
- uses : foundry-rs/foundry-toolchain@v1
58
+ - name : Install Foundry
59
+ uses : foundry-rs/foundry-toolchain@v1
61
60
62
- - name : Restore dependencies cache
63
- uses : actions/cache@v3
64
- with :
65
- path : deps
66
- key : ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
67
- restore-keys : ${{ runner.os }}-mix-
61
+ - name : Restore dependencies cache
62
+ uses : actions/cache@v3
63
+ with :
64
+ path : deps
65
+ key : ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
66
+ restore-keys : ${{ runner.os }}-mix-
68
67
69
- - name : Install dependencies
70
- run : mix deps.get
68
+ - name : Install dependencies
69
+ run : mix deps.get
71
70
72
- - name : Start Anvil (Background)
73
- run : anvil &
71
+ - name : Start Anvil (Background)
72
+ run : anvil &
74
73
75
- - name : Prepare for tests
76
- run : elixir test/test_prepare.exs
74
+ - name : Prepare for tests
75
+ run : elixir test/test_prepare.exs
77
76
78
- - name : Run tests and report coverage
79
- if : ${{matrix.variation.report_coverage}}
80
- run : mix coveralls.github
77
+ - name : Run tests and report coverage
78
+ if : ${{matrix.variation.report_coverage}}
79
+ run : mix coveralls.github
81
80
82
- - name : Run tests
83
- if : ${{!matrix.variation.report_coverage}}
84
- run : mix coveralls
81
+ - name : Run tests
82
+ if : ${{!matrix.variation.report_coverage}}
83
+ run : mix coveralls
85
84
86
- - name : Credo
87
- run : mix credo --strict
85
+ - name : Credo
86
+ run : mix credo --strict
88
87
89
- - name : Dialyzer
90
- run : mix dialyzer
88
+ - name : Dialyzer
89
+ run : mix dialyzer
0 commit comments