-
Notifications
You must be signed in to change notification settings - Fork 4
79 lines (73 loc) · 1.82 KB
/
ci.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: CI
env:
ImageOS: ubuntu22
on:
pull_request:
push:
branches:
- master
jobs:
mix_test:
name: Test (Erlang/OTP ${{matrix.otp}} | Elixir ${{matrix.elixir}})
runs-on:
- runs-on
- runner=2cpu-linux-x64
- "run-id=${{ github.run_id }}"
container: hexpm/elixir:${{ matrix.elixir }}-erlang-${{ matrix.otp }}-alpine-3.11.6
strategy:
fail-fast: false
matrix:
include:
- elixir: 1.8.2
otp: 20.3.8.26
- elixir: 1.9.4
otp: 20.3.8.26
- 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
mix_credo:
name: Run credo
runs-on:
- runs-on
- runner=2cpu-linux-x64
- "run-id=${{ github.run_id }}"
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]
- name: Install Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- run: mix credo --strict
check_formatted:
name: Check formatted
runs-on:
- runs-on
- runner=2cpu-linux-x64
- "run-id=${{ github.run_id }}"
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