-
Notifications
You must be signed in to change notification settings - Fork 11
57 lines (45 loc) · 1.26 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
name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
setup:
runs-on: ${{ matrix.os }}
env:
MIX_ENV: test
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
elixir_version: [1.15, 1.16, 1.17]
otp_version: [25, 26, 27]
exclude:
- otp_version: 27
elixir_version: 1.15
- otp_version: 27
elixir_version: 1.16
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp_version}}
elixir-version: ${{matrix.elixir_version}}
- uses: actions/cache@v4
with:
path: |
deps
_build
key: deps-${{ runner.os }}-${{ matrix.otp_version }}-${{ matrix.elixir_version }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
deps-${{ runner.os }}-${{ matrix.otp_version }}-${{ matrix.elixir_version }}
- run: mix deps.get
- run: mix format --check-formatted
- run: mix deps.unlock --check-unused
- run: mix deps.compile
- run: mix compile --warnings-as-errors
- run: mix credo --strict --format=oneline
- run: mix test --warnings-as-errors --cover