-
Notifications
You must be signed in to change notification settings - Fork 19
54 lines (44 loc) · 1.11 KB
/
ci.yml
File metadata and controls
54 lines (44 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
49
50
51
52
53
54
name: CI
on:
pull_request:
branches:
- master
- main
push:
branches:
- master
- main
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
elixir: ['1.14.2']
otp: ['25.1.1']
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Check code formatting
run: mix format --check-formatted
- name: Compile dependencies
run: mix deps.compile
- name: Compile application
run: mix compile --warnings-as-errors
- name: Run tests
run: mix test