-
Notifications
You must be signed in to change notification settings - Fork 29
61 lines (51 loc) · 1.3 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
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.15'
- '1.14'
- '1.13'
otp:
- '26.1'
- '26.0'
- '25.3'
- '24.3'
exclude:
- elixir: '1.13'
otp: '26.1'
- elixir: '1.13'
otp: '26.0'
services:
redis:
image: redis
ports: ['6379:6379']
steps:
- name: Set up Elixir and OTP
uses: erlef/setup-elixir@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Checkout code
uses: actions/checkout@v3
- name: 'Restore cache for deps/ and _build/ directories'
uses: actions/cache@v3
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