-
Notifications
You must be signed in to change notification settings - Fork 7
104 lines (96 loc) · 2.8 KB
/
ci.yml
File metadata and controls
104 lines (96 loc) · 2.8 KB
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
# Copyright 2018 - 2022, Mathijs Saey, Vrije Universiteit Brussel
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
on: [push, pull_request]
jobs:
compile:
runs-on: ubuntu-latest
name: Check compiler output
strategy:
matrix:
otp: ['28.2']
elixir: ['1.19.4']
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Get Elixir dependencies
run: mix deps.get
- name: Ensure no warnings are present
run: mix compile --warnings-as-errors
typecheck:
runs-on: ubuntu-latest
name: Check type annotations with Dialyzer
strategy:
matrix:
otp: ['28.2']
elixir: ['1.19.4']
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Get Elixir dependencies
run: mix deps.get
- name: Run dialyzer to check type annotations
run: mix dialyzer --format github
test:
runs-on: ubuntu-latest
name: Run tests
strategy:
matrix:
otp: ['24.3.4', '25.3.2', '26.2.5', '27.3.4', '28.2']
elixir: ['1.15.8', '1.16.3', '1.17.3', '1.18.4', '1.19.4']
# Exclude unsupported OTP/Elixir combinations
exclude:
- elixir: '1.15.8'
otp: '27.3.4'
- elixir: '1.15.8'
otp: '28.2'
- elixir: '1.16.3'
otp: '27.3.4'
- elixir: '1.16.3'
otp: '28.2'
- elixir: '1.17.3'
otp: '24.3.4'
- elixir: '1.17.3'
otp: '28.2'
- elixir: '1.18.4'
otp: '24.3.4'
- elixir: '1.18.4'
otp: '28.2'
- elixir: '1.19.4'
otp: '24.3.4'
- elixir: '1.19.4'
otp: '25.3.2'
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Get Elixir dependencies
run: mix deps.get
- name: Run Elixir tests
run: mix test
format:
runs-on: ubuntu-latest
name: Check Elixir formatting
strategy:
matrix:
otp: ['28.2']
elixir: ['1.19.4']
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Get Elixir dependencies
run: mix deps.get
- name: Check code formatting
run: mix format --check-formatted