-
Notifications
You must be signed in to change notification settings - Fork 40
46 lines (37 loc) · 887 Bytes
/
test.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
name: Test suite
on:
push:
branches:
- master
pull_request:
jobs:
build:
strategy:
matrix:
include:
- pair:
elixir: '1.6'
otp: '20'
- pair:
elixir: '1.14'
otp: '24'
check_format: true
runs-on: ubuntu-20.04
name: mix test ${{ matrix.pair.elixir }}-erlang-${{ matrix.pair.otp }}
steps:
- uses: actions/checkout@v1
- name: Setup Elixir
uses: erlef/setup-beam@v1.10
with:
otp-version: ${{matrix.pair.otp}}
elixir-version: ${{matrix.pair.elixir}}
- name: Install Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Check format
if: matrix.check_format
run: mix format --check-formatted
- name: Run Tests
run: mix test