-
Notifications
You must be signed in to change notification settings - Fork 2
68 lines (58 loc) · 1.61 KB
/
Copy pathmain.yml
File metadata and controls
68 lines (58 loc) · 1.61 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
name: CI
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
- erlang: "27.3"
elixir: "1.19.5"
lint: true
big: true
- erlang: "27.3"
elixir: "1.18.4"
- erlang: "27.3"
elixir: "1.17.3"
- erlang: "26.2"
elixir: "1.16.3"
- erlang: "26.2"
elixir: "1.15.8"
- erlang: "25.3"
elixir: "1.14.5"
- erlang: "25.3"
elixir: "1.13.4"
- erlang: "24.3.4"
elixir: "1.12.3"
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Install OTP and Elixir
uses: erlef/setup-beam@fc68ffb90438ef2936bbb3251622353b3dcb2f93 # v1.24.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"