-
Notifications
You must be signed in to change notification settings - Fork 24
138 lines (119 loc) · 3.29 KB
/
elixir.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
name: CI Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
check_format:
name: Code format check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: '1.13.4'
otp-version: '24.3'
- name: Restore dependencies cache
uses: actions/cache@v2
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Check format
run: mix format --check-formatted
- name: Check credo
run: mix credo --strict
- name: Restore build Cache
uses: actions/cache@v1
id: build-cache
with:
path: _build
key: ${{ runner.os }}-build
dialyzer:
name: Typecheck with dialyzer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: '1.14.2'
otp-version: '25.2'
- name: Restore dependencies cache
uses: actions/cache@v2
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Restore build Cache
uses: actions/cache@v1
id: build-cache
with:
path: _build
key: ${{ runner.os }}-build
- name: Create PLTs
run: mix dialyzer --plt
- name: Typecheck
run: mix dialyzer
test:
name: Test OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
runs-on: ubuntu-20.04 # Later Ubuntu versions do not have OTP 22
strategy:
matrix:
otp: ['25.3', '26.2', '27.1']
elixir: ['1.15.8', '1.16.3', '1.17.3']
include:
- otp: '22.3'
elixir: '1.7.4'
- otp: '22.3'
elixir: '1.8.2'
- otp: '22.3'
elixir: '1.9.4'
- otp: '22.3'
elixir: '1.10.4'
- otp: '24.3'
elixir: '1.11.4'
- otp: '24.3'
elixir: '1.12.3'
- otp: '25.3'
elixir: '1.13.4'
- otp: '25.3'
elixir: '1.14.5'
exclude:
- otp: '27.1'
elixir: '1.15.8'
- otp: '27.1'
elixir: '1.16.3'
steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{matrix.elixir}}
otp-version: ${{matrix.otp}}
- name: Restore dependencies cache
uses: actions/cache@v2
with:
path: deps
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Restore build Cache
uses: actions/cache@v1
id: build-cache
with:
path: _build
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-build
- name: Run tests
run: mix coveralls.github --include property_based
env:
ASSERT_RECEIVE_TIMEOUT: 300
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}