-
Notifications
You must be signed in to change notification settings - Fork 11
81 lines (76 loc) · 1.83 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
name: Elixir CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
# unit tests
test:
runs-on: ubuntu-latest
name: Test - OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
otp: ["24.3", "25.2"]
elixir: ["1.13.4", "1.14.3"]
steps:
- uses: actions/checkout@v2
- name: Setup elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Install Dependencies
run: mix deps.get
- name: Run Tests
run: mix test
# mutation tests
test-mutation:
name: Test mutation
runs-on: ubuntu-latest
env:
MIX_ENV: mutation
steps:
- uses: actions/checkout@v2
- name: Setup elixir
uses: erlef/setup-beam@v1
with:
otp-version: "25.2"
elixir-version: "1.14.3"
- run: mix deps.get
# Linit and type checking
analyze:
runs-on: ubuntu-latest
name: Analyze - OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
otp: ["24.3", "25.2"]
elixir: ["1.13.4", "1.14.3"]
steps:
- uses: actions/checkout@v2
- name: Setup elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- run: mix deps.get
- run: mix dialyzer
- run: mix credo --strict
# Coverage
coverage:
name: Coverage
runs-on: ubuntu-latest
env:
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Setup elixir
uses: erlef/setup-beam@v1
with:
otp-version: "25.2"
elixir-version: "1.14.3"
- run: mix deps.get
- run: mix coveralls.github