-
Notifications
You must be signed in to change notification settings - Fork 15
47 lines (44 loc) · 1.11 KB
/
main.yml
File metadata and controls
47 lines (44 loc) · 1.11 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
name: CI
on: [push, pull_request]
jobs:
format:
name: check-format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Elixir
uses: actions/setup-elixir@v1
with:
elixir-version: 1.10.4
otp-version: 23.0.4
- name: Install dependencies
run: mix deps.get
- name: Check format
run: mix format --check-formatted
test:
runs-on: ubuntu-latest
name: OTP ${{matrix.pair.otp}} / Elixir ${{matrix.pair.elixir}}
strategy:
matrix:
pair:
- elixir: 1.7.x
otp: 19.x
- elixir: 1.8.x
otp: 20.x
- elixir: 1.9.x
otp: 21.x
- elixir: 1.10.x
otp: 22.x
- elixir: 1.10.x
otp: 23.x
steps:
- uses: actions/checkout@v2
- name: Setup Elixir
uses: actions/setup-elixir@v1
with:
elixir-version: ${{matrix.pair.elixir}}
otp-version: ${{matrix.pair.otp}}
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test