-
Notifications
You must be signed in to change notification settings - Fork 28
46 lines (38 loc) · 972 Bytes
/
elixir.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
40
41
42
43
44
45
46
name: TableRex CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Official support is for latest 3 minor Elixir
# versions & latest 2 major OTP releases.
elixir: ["1.13", "1.14", "1.15"]
otp: ["25", "26"]
exclude:
- elixir: 1.13
otp: 26
- elixir: 1.14
otp: 26
steps:
- uses: actions/checkout@v3
- name: Setup Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Install dependencies
run: mix deps.get
- name: Compile & error on warning
run: mix compile --warnings-as-errors
- name: Check code is formatted
run: mix format --check-formatted
- name: Run the test suite
run: mix test