-
Notifications
You must be signed in to change notification settings - Fork 18
58 lines (55 loc) · 1.55 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
name: Elixir CI
on: [push, pull_request]
jobs:
build_with_opt_24:
name: Build and test older versions ${{matrix.elixir}}-otp-${{matrix.otp}}
runs-on: ubuntu-latest
strategy:
matrix:
otp: ['24.0']
elixir: ['1.12.0', '1.13.0', '1.14.0']
steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-elixir@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- 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: Run tests
run: mix test
- name: format and lint
run: mix lint.all
build_with_opt_25:
name: Build and test ${{matrix.elixir}}-otp-${{matrix.otp}}
runs-on: ubuntu-latest
strategy:
matrix:
otp: ['25.0']
elixir: ['1.13.0', '1.14.0']
steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-elixir@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- 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: Run tests
run: mix test
- name: format and lint
run: mix lint.all