-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (40 loc) · 1003 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CI
on:
push:
branches:
- main
pull_request:
env:
CACHE_VERSION: 1
jobs:
test:
runs-on: ubuntu-latest
name: OTP ${{ matrix.otp }} - Elixir ${{ matrix.elixir }}
env:
MIX_ENV: "test"
ELIXIR_VERSION: ${{ matrix.elixir }}
OTP_VERSION: ${{ matrix.otp }}
strategy:
fail-fast: false
# https://hexdocs.pm/elixir/1.17.0/compatibility-and-deprecations.html
matrix:
otp: ["24", "25", "26"]
elixir: ["1.15.5", "1.16.3", "1.17.1"]
exclude:
- otp: "24"
elixir: "1.17.1"
include:
- otp: "27"
elixir: "1.17.1"
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Setup OTP and Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Install Dependencies
run: mix deps.get
- name: Run Tests
run: mix test