Skip to content

Commit 6ffe349

Browse files
committed
refactor: update test matrix to use multi versions of elixir and otp
1 parent 913bd12 commit 6ffe349

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.github/workflows/elixir.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,22 @@ on:
77
branches: [ main ]
88

99
jobs:
10-
build:
11-
12-
name: Build and test
13-
runs-on: ubuntu-latest
14-
10+
test:
11+
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
12+
runs-on: ubuntu-22.04
13+
strategy:
14+
matrix:
15+
otp: ['26.x', '27.x']
16+
elixir: ['1.16.3', '1.17.3', '1.18.3']
17+
exclude:
18+
- otp: '27.x'
19+
elixir: '1.16.3'
1520
steps:
1621
- uses: actions/checkout@v2
17-
- name: Set up Elixir
18-
uses: erlef/setup-elixir@885971a72ed1f9240973bd92ab57af8c1aa68f24
19-
with:
20-
elixir-version: '1.13.1'
21-
otp-version: '24.0.4'
22-
- name: Restore dependencies cache
23-
uses: actions/cache@v2
22+
- uses: erlef/setup-beam@v1
2423
with:
25-
path: deps
26-
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
27-
restore-keys: ${{ runner.os }}-mix-
24+
otp-version: ${{matrix.otp}}
25+
elixir-version: ${{matrix.elixir}}
2826
- name: Install dependencies
2927
run: mix deps.get
3028
- name: Static Code Analysis - Dialyzer

0 commit comments

Comments
 (0)