-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 985 Bytes
/
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
name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
jobs:
test:
name: OTP ${{ matrix.otp }} / Elixir ${{ matrix.elixir }}
runs-on: ubuntu-20.04
env:
MIX_ENV: test
strategy:
fail-fast: false
matrix:
otp: [26, 25, 24]
elixir: ["1.16", "1.15", "1.14", "1.13"]
exclude:
- otp: 26
elixir: "1.14"
- otp: 26
elixir: "1.13"
- otp: 25
elixir: "1.13"
include:
- otp: 23
elixir: "1.14"
- otp: 23
elixir: "1.13"
- otp: 22
elixir: "1.13"
steps:
- uses: actions/checkout@v4
- uses: CargoSense/setup-elixir-project@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
build-flags: "--warnings-as-errors"
- run: mix format --check-formatted
- run: mix test