Repository navigation
57 lines (55 loc) · 1.6 KB
/
Copy pathelixir.yml
File metadata and controls
57 lines (55 loc) · 1.6 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: CI
on: push
jobs:
unit-test:
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
env:
MIX_ENV: test
strategy:
fail-fast: false
matrix:
include:
- elixir: "1.18"
otp: "28"
- elixir: "1.18"
otp: "27"
- elixir: "1.17"
otp: "27"
- elixir: "1.16"
otp: "26"
- elixir: "1.15.6"
otp: "25.3.2.6"
os: ubuntu-24.04 # no OTP 25 builds for ubuntu-26.04
- elixir: "1.15.6"
otp: "24.3.4.13"
os: ubuntu-24.04 # no OTP 24 builds for ubuntu-26.04
- elixir: "1.20.0"
otp: "27.3.4.11"
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install Elixir and Erlang
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Restore deps and _build cache
uses: actions/cache@v4
with:
path: |
deps
_build
key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-
- name: Install dependencies
run: mix deps.get
- name: Compile deps
run: mix deps.compile
- name: Run tests
run: mix test
- name: Check format
run: mix format --check-formatted
- name: Check quality
run: mix credo --all --strict || true