Skip to content

Commit bc92949

Browse files
committed
Test on CI with newer Elixir/OTP versions too
1 parent ee31c41 commit bc92949

1 file changed

Lines changed: 24 additions & 15 deletions

File tree

.github/workflows/elixir.yml

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
elixir: [1.15]
20-
otp: [26]
19+
pair:
20+
- elixir: '1.15'
21+
otp: '26'
22+
- elixir: '1.19.5'
23+
otp: '28'
2124
steps:
2225
- name: checkout
2326
uses: actions/checkout@v4
@@ -26,8 +29,8 @@ jobs:
2629
- name: setup
2730
uses: erlef/setup-beam@v1
2831
with:
29-
elixir-version: ${{ matrix.elixir }}
30-
otp-version: ${{ matrix.otp }}
32+
elixir-version: ${{ matrix.pair.elixir }}
33+
otp-version: ${{ matrix.pair.otp }}
3134
- name: Retrieve Cached Dependencies
3235
uses: actions/cache@v4
3336
id: mix-cache
@@ -36,7 +39,7 @@ jobs:
3639
deps
3740
_build
3841
priv/plts
39-
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }}
42+
key: ${{ runner.os }}-${{ matrix.pair.otp }}-${{ matrix.pair.elixir }}-${{ hashFiles('mix.lock') }}
4043
- name: Install deps
4144
if: steps.mix-cache.outputs.cache-hit != 'true'
4245
run: |
@@ -53,17 +56,20 @@ jobs:
5356
runs-on: ubuntu-latest
5457
strategy:
5558
matrix:
56-
elixir: [1.15]
57-
otp: [26]
59+
pair:
60+
- elixir: '1.15'
61+
otp: '26'
62+
- elixir: '1.19.5'
63+
otp: '28'
5864
steps:
5965
- uses: actions/checkout@v4
6066
with:
6167
fetch-depth: 0
6268
- name: Setup elixir
6369
uses: erlef/setup-beam@v1
6470
with:
65-
elixir-version: ${{ matrix.elixir }}
66-
otp-version: ${{ matrix.otp }}
71+
elixir-version: ${{ matrix.pair.elixir }}
72+
otp-version: ${{ matrix.pair.otp }}
6773
- name: Retrieve Cached Dependencies
6874
uses: actions/cache@v4
6975
id: mix-cache
@@ -72,7 +78,7 @@ jobs:
7278
deps
7379
_build
7480
priv/plts
75-
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }}
81+
key: ${{ runner.os }}-${{ matrix.pair.otp }}-${{ matrix.pair.elixir }}-${{ hashFiles('mix.lock') }}
7682
- name: Run Credo
7783
run: mix credo
7884
- name: Run Dialyzer
@@ -84,16 +90,19 @@ jobs:
8490
runs-on: ubuntu-latest
8591
strategy:
8692
matrix:
87-
elixir: [1.15]
88-
otp: [26]
93+
pair:
94+
- elixir: '1.15'
95+
otp: '26'
96+
- elixir: '1.19.5'
97+
otp: '28'
8998
steps:
9099
- uses: actions/checkout@v4
91100
with:
92101
fetch-depth: 0
93102
- uses: erlef/setup-beam@v1
94103
with:
95-
elixir-version: ${{ matrix.elixir }}
96-
otp-version: ${{ matrix.otp }}
104+
elixir-version: ${{ matrix.pair.elixir }}
105+
otp-version: ${{ matrix.pair.otp }}
97106
- name: Retrieve Cached Dependencies
98107
uses: actions/cache@v4
99108
id: mix-cache
@@ -102,6 +111,6 @@ jobs:
102111
deps
103112
_build
104113
priv/plts
105-
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }}
114+
key: ${{ runner.os }}-${{ matrix.pair.otp }}-${{ matrix.pair.elixir }}-${{ hashFiles('mix.lock') }}
106115
- name: Run Tests
107116
run: mix test

0 commit comments

Comments
 (0)