-
Notifications
You must be signed in to change notification settings - Fork 7
68 lines (58 loc) · 1.51 KB
/
ci.yaml
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
name: CI
on: [push, pull_request]
jobs:
format:
name: Validation of source code
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Install OTP and Elixir
uses: erlef/setup-beam@v1
with:
otp-version: 27.0.1
elixir-version: 1.17.2
- name: Cache PLT files
id: cache-plt
uses: actions/cache@v2
with:
path: |
_build/dev/*.plt
_build/dev/*.plt.hash
deps
key: plt-cache-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
plt-cache-
- name: Validate
run: mix do deps.get, validate
test:
name: Test (Elixir ${{matrix.elixir}} | Erlang/OTP ${{matrix.otp}})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- elixir: 1.17.x
otp: 27
- elixir: 1.16.x
otp: 26
- elixir: 1.15.x
otp: 26
- elixir: 1.14.x
otp: 26
- elixir: 1.14.x
otp: 25
- elixir: 1.13.x
otp: 24
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v1
- name: Install OTP and Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Install dependencies
run: mix deps.get --only test
- name: Run tests
run: mix test --trace