-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 883 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
name: Elixir CI
on:
push:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-20.04
name: OTP ${{ matrix.otp }} / Elixir ${{ matrix.elixir }}
strategy:
matrix:
include:
- otp: 23.3.1
elixir: 1.11.0
- otp: 24.3.3
elixir: 1.13.4
- otp: 25.3
elixir: 1.14.4
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1.15
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Restore dependencies cache
uses: actions/cache@v4
with:
path: deps
key: ${{ runner.os }}-mix-cache-${{ hashFiles('**/mix.exs') }}
- name: Get dependencies
run: mix deps.get
- name: Run checks
run: mix check