-
Notifications
You must be signed in to change notification settings - Fork 7
77 lines (71 loc) · 1.98 KB
/
test.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: CI
on:
- pull_request
- push
jobs:
test:
name: mix test (Elixir ${{ matrix.elixir }} OTP ${{ matrix.otp }})
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
include:
- elixir: 1.11.x
otp: 21.x
os: ubuntu-20.04
- elixir: 1.11.x
otp: 22.x
os: ubuntu-20.04
- elixir: 1.11.x
otp: 23.x
os: ubuntu-20.04
- elixir: 1.12.x
otp: 22.x
os: ubuntu-20.04
- elixir: 1.12.x
otp: 23.x
os: ubuntu-20.04
- elixir: 1.12.x
otp: 24.x
os: ubuntu-20.04
- elixir: 1.13.x
otp: 22.x
os: ubuntu-20.04
- elixir: 1.13.x
otp: 23.x
os: ubuntu-20.04
- elixir: 1.13.x
otp: 24.x
os: ubuntu-20.04
- elixir: 1.14.x
otp: 23.x
os: ubuntu-20.04
- elixir: 1.14.x
otp: 24.x
os: ubuntu-20.04
- elixir: 1.14.x
otp: 25.x
os: ubuntu-20.04
- elixir: 1.15.x
otp: 24.x
os: ubuntu-20.04
- elixir: 1.15.x
otp: 25.x
os: ubuntu-20.04
steps:
- name: Checkout source
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Setup cache
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
key: ${{ github.job }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('mix.lock') }}-1
path: _build
- name: Install runtime
uses: erlef/setup-beam@0a541161e47ec43ccbd9510053c5f336ca76c2a2 # v1.17.6
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Install Dependencies
run: mix deps.get
- name: Run tests
run: mix test