Skip to content

Commit e0f1db3

Browse files
committed
ci: update version matrix
1 parent 192cecc commit e0f1db3

File tree

1 file changed

+23
-24
lines changed

1 file changed

+23
-24
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,38 @@ name: Elixir CI
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ["main"]
88

99
permissions:
1010
contents: read
1111

1212
jobs:
1313
build:
14-
1514
name: Build and test
16-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-22.04
1716
strategy:
1817
matrix:
19-
elixir_version: [ '1.14', '1.13', '1.12', '1.11', '1.10' ]
20-
otp_version: [ '25', '24' ]
18+
elixir_version: ["1.14.0", "1.13.4", "1.12.3"]
19+
otp_version: ["25", "24"]
2120

2221
steps:
23-
- uses: actions/checkout@v3
24-
- name: Set up Elixir
25-
uses: erlef/setup-beam@988e02bfe678367a02564f65ca2e37726dc0268f
26-
with:
27-
elixir-version: ${{ matrix.elixir_version }}
28-
otp-version: ${{ matrix.otp_version }}
29-
- name: Restore dependencies cache
30-
uses: actions/cache@v3
31-
with:
32-
path: deps
33-
key: ${{ matrix.otp_version }}-${{ matrix.elixir_version }}-${{ hashFiles('**/mix.lock') }}
34-
restore-keys: |
35-
${{ matrix.otp_version }}-${{ matrix.elixir_version }}-
36-
${{ matrix.otp_version }}-
37-
- name: Install dependencies
38-
run: mix deps.get
39-
- name: Run tests
40-
run: mix test
22+
- uses: actions/checkout@v3
23+
- name: Set up Elixir
24+
uses: erlef/setup-beam@v1
25+
with:
26+
elixir-version: ${{ matrix.elixir_version }}-otp-${{ matrix.otp_version }}
27+
otp-version: ${{ matrix.otp_version }}
28+
- name: Restore dependencies cache
29+
uses: actions/cache@v3
30+
with:
31+
path: deps
32+
key: ${{ matrix.otp_version }}-${{ matrix.elixir_version }}-${{ hashFiles('**/mix.lock') }}
33+
restore-keys: |
34+
${{ matrix.otp_version }}-${{ matrix.elixir_version }}-
35+
${{ matrix.otp_version }}-
36+
- name: Install dependencies
37+
run: mix deps.get
38+
- name: Run tests
39+
run: mix test

0 commit comments

Comments
 (0)