-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 872 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
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
test:
name: OTP ${{matrix.pair.otp}} / Elixir ${{matrix.pair.elixir}}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- pair:
elixir: "1.13"
otp: "24.3.4.10"
- pair:
elixir: "1.17"
otp: "27.0.1"
lint: lint
env:
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@main
with:
otp-version: ${{ matrix.pair.otp }}
elixir-version: ${{ matrix.pair.elixir }}
version-type: strict
- run: mix deps.get --check-locked
- run: mix format --check-formatted
- run: mix test --slowest 5
- run: mix coveralls.github