-
Notifications
You must be signed in to change notification settings - Fork 37
67 lines (57 loc) · 1.66 KB
/
test.yml
File metadata and controls
67 lines (57 loc) · 1.66 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
66
67
name: Mix Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
name: Elixir ${{ matrix.elixir }} with OTP ${{ matrix.otp }}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
elixir:
- '1.18'
- '1.17'
- '1.16'
otp:
- '27.3'
- '27.2'
- '26.2'
- '25.3'
exclude:
# Elixir 1.18 + OTP 25 is technically supported:
# https://hexdocs.pm/elixir/1.18.1/compatibility-and-deprecations.html#between-elixir-and-erlang-otp
# but not on GHA:
# https://github.com/tompave/fun_with_flags/actions/runs/12515433561/job/34912997388?pr=189#step:5:20
- elixir: '1.18'
otp: '25.3'
- elixir: '1.16'
otp: '27.3'
- elixir: '1.16'
otp: '27.2'
services:
redis:
image: redis
ports: ['6379:6379']
steps:
- name: Set up Elixir and OTP
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Checkout code
uses: actions/checkout@v4
- name: 'Restore cache for deps/ and _build/ directories'
uses: actions/cache@v4
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-${{ matrix.elixir }}-${{ matrix.otp }}-
- name: Install Mix dependencies
run: mix deps.get
- name: Run the tests
run: mix test