-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (45 loc) · 1.37 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
on:
pull_request:
push:
branches:
- main
jobs:
main:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- elixir_version: '1.17'
otp_version: '27.0'
lint: true
- elixir_version: '1.17'
otp_version: '27.0'
req_0_4: true
- elixir_version: '1.16'
otp_version: '26.2.5'
- elixir_version: '1.16'
otp_version: '26.2.5'
req_0_4: true
- elixir_version: '1.15'
otp_version: '25.3.2.12'
- elixir_version: '1.15'
otp_version: '25.3.2.12'
req_0_4: true
name: Elixir ${{ matrix.elixir_version}} - OTP ${{ matrix.otp_version }} ${{ matrix.lint && '- Lint' }} ${{ matrix.req_0_4 && '- Req 0.4' }}
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir_version }}
otp-version: ${{ matrix.otp_version }}
- run: cp blend/req_0_4.mix.lock mix.lock
if: ${{ matrix.req_0_4 }}
- run: mix deps.get --check-locked
- run: mix compile --warnings-as-errors
if: ${{ matrix.lint }}
- run: mix format --check-formatted
if: ${{ matrix.lint }}
- run: mix deps.unlock --check-unused
if: ${{ matrix.lint }}
- run: mix test