-
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@2036a08e25fa78bbd946711a407b529a0a1204bf # v2.3.2
- name: Setup cache
uses: actions/cache@2b250bc32ad02700b996b496c14ac8c2840a2991 # v2.1.8
with:
key: ${{ github.job }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('mix.lock') }}-1
path: _build
- name: Install runtime
uses: erlef/setup-beam@2f0cc07b4b9bea248ae098aba9e1a8a1de5ec24c # v1.17.5
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Install Dependencies
run: mix deps.get
- name: Run tests
run: mix test