-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (41 loc) · 1.09 KB
/
main.yml
File metadata and controls
51 lines (41 loc) · 1.09 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
name: CI
on: [push, pull_request]
jobs:
format:
name: Format and compile with warnings as errors
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install OTP and Elixir
uses: erlef/setup-beam@v1
with:
otp-version: 27.x
elixir-version: 1.18.x
- name: Install dependencies
run: mix deps.get
- name: Run "mix format"
run: mix format --check-formatted
- name: Compile with --warnings-as-errors
run: mix compile --warnings-as-errors
test:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- erlang: 26.x
elixir: 1.16.x
- erlang: 27.x
elixir: 1.19.x
steps:
- uses: actions/checkout@v4
- name: Install OTP and Elixir
uses: erlef/setup-elixir@v1
with:
otp-version: ${{matrix.erlang}}
elixir-version: ${{matrix.elixir}}
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test --trace