Skip to content

Commit 36383ce

Browse files
committed
Update CI Elixir and Erlang versions
1 parent d059ad8 commit 36383ce

File tree

1 file changed

+45
-46
lines changed

1 file changed

+45
-46
lines changed

.github/workflows/elixir.yml

Lines changed: 45 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ name: Elixir CI
77

88
on:
99
push:
10-
branches: [ "main" ]
10+
branches: ["main"]
1111
pull_request:
12-
branches: [ "main" ]
12+
branches: ["main"]
1313

1414
permissions:
1515
contents: read
@@ -27,64 +27,63 @@ jobs:
2727
strategy:
2828
matrix:
2929
variation:
30-
- otp: '27.x'
31-
elixir: '1.17'
30+
- otp: "27.x"
31+
elixir: "1.18"
3232
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"
3635
report_coverage: false
37-
- otp: '26.x'
38-
elixir: '1.16'
36+
- otp: "27.x"
37+
elixir: "1.17"
3938
report_coverage: false
40-
- otp: '25.x'
41-
elixir: '1.16'
39+
- otp: "26.x"
40+
elixir: "1.17"
4241
report_coverage: false
4342

4443
steps:
45-
- uses: actions/checkout@v3
44+
- uses: actions/checkout@v3
4645

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}}
5251

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
5857
59-
- name: Install Foundry
60-
uses: foundry-rs/foundry-toolchain@v1
58+
- name: Install Foundry
59+
uses: foundry-rs/foundry-toolchain@v1
6160

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-
6867

69-
- name: Install dependencies
70-
run: mix deps.get
68+
- name: Install dependencies
69+
run: mix deps.get
7170

72-
- name: Start Anvil (Background)
73-
run: anvil &
71+
- name: Start Anvil (Background)
72+
run: anvil &
7473

75-
- name: Prepare for tests
76-
run: elixir test/test_prepare.exs
74+
- name: Prepare for tests
75+
run: elixir test/test_prepare.exs
7776

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
8180

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
8584

86-
- name: Credo
87-
run: mix credo --strict
85+
- name: Credo
86+
run: mix credo --strict
8887

89-
- name: Dialyzer
90-
run: mix dialyzer
88+
- name: Dialyzer
89+
run: mix dialyzer

0 commit comments

Comments
 (0)