-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (48 loc) · 1.34 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
name: CI
on:
pull_request:
push:
jobs:
main:
timeout-minutes: 10
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
- elixir: '1.17'
erlang: '27.0'
lint: true
- elixir: '1.16'
erlang: '26.2.5'
- elixir: '1.15'
erlang: '25.3.2.12'
- elixir: '1.15'
erlang: '24.3.4.17'
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
if: ${{ ! matrix.lint }}
with:
path: |
_build
deps
key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.erlang }}-${{ hashFiles('mix.lock') }}
- uses: actions/cache@v4
with:
key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.erlang }}-${{ hashFiles('mix.lock') }}-plt
path: plts
if: ${{ matrix.lint }}
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.erlang }}
elixir-version: ${{ matrix.elixir }}
- run: mix deps.get --check-locked
- run: mix format --check-formatted
if: ${{ matrix.lint }}
- run: mix deps.unlock --check-unused
if: ${{ matrix.lint }}
- run: mix compile --warnings-as-errors
- run: mix dialyzer --format github
if: ${{ matrix.lint }}
- run: mix test