-
Notifications
You must be signed in to change notification settings - Fork 3
70 lines (60 loc) · 1.68 KB
/
Copy pathmain.yml
File metadata and controls
70 lines (60 loc) · 1.68 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: CI
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
include:
- erlang: "24.1.7"
elixir: "1.13.0"
lint: true
big: true
- erlang: "24.1.7"
elixir: "1.12.3"
- erlang: "23.3.4"
elixir: "1.11.4"
- erlang: "23.3.4"
elixir: "1.10.4"
- erlang: "22.3.4"
elixir: "1.9.4"
- erlang: "22.3.4"
elixir: "1.8.2"
- erlang: "21.3.8"
elixir: "1.7.4"
- erlang: "20.3.8"
elixir: "1.6.6"
- erlang: "19.3.6"
elixir: "1.5.3"
steps:
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0
with:
persist-credentials: false
- name: Install OTP and Elixir
uses: erlef/setup-elixir@ee09b1e59bb240681c382eb1f0abc6a04af72764 # v1.23.0
with:
otp-version: ${{matrix.erlang}}
elixir-version: ${{matrix.elixir}}
- name: Install dependencies
run: mix deps.get
- name: Check for unused dependencies
run: mix deps.unlock --check-unused
if: ${{matrix.lint}}
- name: Compile with --warnings-as-errors
run: mix compile --warnings-as-errors
if: ${{matrix.lint}}
- name: Check mix format
run: mix format --check-formatted
if: ${{matrix.lint}}
- name: Run tests
run: mix test
if: ${{!matrix.big}}
- name: Run tests
run: mix test
if: ${{matrix.big}}
env:
MAX_RUNS: "50000"