-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (41 loc) · 1.04 KB
/
ci.yaml
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
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
mix_test:
name: mix test (Erlang/OTP ${{matrix.otp}} | Elixir ${{matrix.elixir}})
runs-on: ubuntu-latest
container: hexpm/elixir:${{ matrix.elixir }}-erlang-${{ matrix.otp }}-alpine-3.11.6
strategy:
fail-fast: false
matrix:
include:
- elixir: 1.10.3
otp: 21.3.8.16
- elixir: 1.11.2
otp: 21.3.8.16
- elixir: 1.11.2
otp: 23.0.2
steps:
- uses: actions/[email protected]
- name: Install Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- run: mix test
check_formatted:
name: Check formatted
runs-on: ubuntu-latest
container: hexpm/elixir:${{ matrix.elixir }}-erlang-${{ matrix.otp }}-alpine-3.11.6
strategy:
matrix:
include:
- elixir: 1.11.2
otp: 23.0.2
steps:
- uses: actions/[email protected]
- run: mix format --check-formatted