-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1 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
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: [27, 26, 25, 24]
elixir: ["1.18", "1.17", "1.16", "1.15"]
exclude:
- otp: 24
elixir: "1.18"
- otp: 24
elixir: "1.17"
- otp: 27
elixir: "1.16"
- otp: 27
elixir: "1.15"
# (Keeping this around as a reminder that you can do it if needed.)
# include:
# - otp: 23
# elixir: "1.14"
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