-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 915 Bytes
/
ci.yml
File metadata and controls
41 lines (35 loc) · 915 Bytes
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
name: CI
on:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
name: Elixir ${{ matrix.elixir }} / OTP ${{ matrix.otp }}
strategy:
fail-fast: false
matrix:
elixir: ["1.14.0", "1.12.0"]
otp: ["25.0.4", "22.3.4"]
exclude:
- elixir: "1.14.0"
otp: "22.3.4"
- elixir: "1.12.0"
otp: "25.0.4"
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1.12
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Check format
run: mix format --check-formatted
if: matrix.elixir == '1.14.0'
- name: Install dependencies
run: mix deps.get
- name: Check for unused dependencies
run: mix deps.unlock --check-unused
- name: Run test
run: |-
MIX_ENV=test mix test