Skip to content

Commit 437be1b

Browse files
committed
Update CI to only run against 3 most recent versions of elixir and erlang
1 parent 5de21da commit 437be1b

1 file changed

Lines changed: 40 additions & 59 deletions

File tree

.github/workflows/elixir.yml

Lines changed: 40 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -8,86 +8,67 @@ on:
88

99
jobs:
1010
test:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-latest
1212
env:
1313
MIX_ENV: test
1414
strategy:
1515
fail-fast: false
1616
matrix:
1717
elixir:
18-
- "1.13"
19-
- "1.14"
20-
- "1.15"
2118
- "1.16"
2219
- "1.17"
20+
- "1.18"
2321
otp:
24-
- "24"
2522
- "25"
2623
- "26"
2724
- "27"
28-
include:
29-
- elixir: "1.15"
30-
otp: "26"
31-
format: true
3225
exclude:
3326
- elixir: "1.13"
34-
otp: "26"
35-
- elixir: "1.14"
36-
otp: "26"
37-
- elixir: "1.13"
38-
otp: "27"
39-
- elixir: "1.14"
40-
otp: "27"
41-
- elixir: "1.15"
42-
otp: "27"
43-
- elixir: "1.16"
44-
otp: "27"
45-
- elixir: "1.17"
46-
otp: "24"
27+
- otp: "25"
4728

4829
steps:
49-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v2
5031

51-
- uses: erlef/setup-beam@v1
52-
with:
53-
otp-version: ${{matrix.otp}}
54-
elixir-version: ${{matrix.elixir}}
32+
- uses: erlef/setup-beam@v1
33+
with:
34+
otp-version: ${{matrix.otp}}
35+
elixir-version: ${{matrix.elixir}}
5536

56-
- name: Restore deps cache
57-
uses: actions/cache@v2
58-
with:
59-
path: |
60-
deps
61-
_build
62-
key: deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}-git-${{ github.sha }}
63-
restore-keys: |
64-
deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
65-
deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}
37+
- name: Restore deps cache
38+
uses: actions/cache@v2
39+
with:
40+
path: |
41+
deps
42+
_build
43+
key: deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}-git-${{ github.sha }}
44+
restore-keys: |
45+
deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
46+
deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}
6647
67-
- name: Install package dependencies
68-
run: mix deps.get
48+
- name: Install package dependencies
49+
run: mix deps.get
6950

70-
- name: Check code format
71-
run: mix format --check-formatted
72-
if: ${{ matrix.format }}
51+
- name: Check code format
52+
run: mix format --check-formatted
53+
if: ${{ matrix.format }}
7354

74-
- name: Compile dependencies
75-
run: mix compile
76-
env:
77-
MIX_ENV: test
55+
- name: Compile dependencies
56+
run: mix compile
57+
env:
58+
MIX_ENV: test
7859

79-
- name: Run unit tests
80-
run: mix test
60+
- name: Run unit tests
61+
run: mix test
8162

82-
- name: Cache/uncache PLTs
83-
uses: actions/cache@v3
84-
with:
85-
path: |
86-
priv/plts
87-
key: "${{ runner.os }}-\
88-
erlang-${{ matrix.otp }}-\
89-
elixir-${{ matrix.elixir }}-\
90-
${{ hashFiles('mix.lock') }}"
63+
- name: Cache/uncache PLTs
64+
uses: actions/cache@v3
65+
with:
66+
path: |
67+
priv/plts
68+
key: "${{ runner.os }}-\
69+
erlang-${{ matrix.otp }}-\
70+
elixir-${{ matrix.elixir }}-\
71+
${{ hashFiles('mix.lock') }}"
9172

92-
- name: Run Dialyzer
93-
run: mix dialyzer
73+
- name: Run Dialyzer
74+
run: mix dialyzer

0 commit comments

Comments
 (0)