-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (61 loc) · 1.73 KB
/
Copy pathelixir.yml
File metadata and controls
65 lines (61 loc) · 1.73 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
58
59
60
61
62
63
64
65
name: Elixir CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
env:
MIX_ENV: test
jobs:
test:
name: OTP ${{ matrix.otp }} / Elixir ${{ matrix.elixir }}
runs-on: ubuntu-24.04
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
# Limited to the OTP majors requested here and only upstream-supported
# Elixir/OTP pairs from the official Elixir docs compatibility table.
include:
- otp: "27"
elixir: "1.17"
- otp: "27"
elixir: "1.18"
- otp: "27"
elixir: "1.19"
- otp: "28"
elixir: "1.19"
- otp: "27"
elixir: "1.20"
- otp: "28"
elixir: "1.20"
- otp: "29"
elixir: "1.20"
steps:
- uses: actions/checkout@v4
- name: Set up Erlang/OTP and Elixir
id: setup-beam
uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
version-type: loose
- name: Restore dependencies and build cache
uses: actions/cache@v4
with:
path: |
deps
_build
key: ${{ runner.os }}-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}-mix-${{ hashFiles('mix.exs', 'mix.lock') }}
restore-keys: |
${{ runner.os }}-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}-mix-
- name: Install Hex
run: mix local.hex --force
- name: Install Rebar
run: mix local.rebar --force
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test