-
Notifications
You must be signed in to change notification settings - Fork 8
50 lines (41 loc) · 1.11 KB
/
ci.yml
File metadata and controls
50 lines (41 loc) · 1.11 KB
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
44
45
46
47
48
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- elixir: "1.15.5"
otp: "26"
- elixir: "1.16.0"
otp: "26"
- elixir: "1.18.3"
otp: "27"
- elixir: "1.19.2"
otp: "27"
steps:
- uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: "1.19"
otp-version: "27"
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Install dependencies
run: mix deps.get
- name: Cache dependencies
uses: actions/cache@v4
with:
path: deps
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles('**/mix.lock') }}
- name: Check formatting
run: mix format --check-formatted
if: matrix.check_formatted
- name: Run tests
run: mix test